Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Aug 12, 2024
1 parent 293854d commit d00b556
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/compiler/nvcc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -645,9 +645,8 @@ where
.fold_ok((
vec![],
HashMap::<String, String>::new(),
HashMap::<String, String>::new(),
HashMap::<String, i32>::new()
), |(mut command_groups, mut old_to_new, mut new_to_old, mut ext_counts), (exe, mut args)| {
), |(mut command_groups, mut old_to_new, mut ext_counts), (exe, mut args)| {

// Remap nvcc's generated file names to deterministic names
if remap_filenames {
Expand Down Expand Up @@ -678,9 +677,7 @@ where
}
.and_then(|count| {
let new = count.to_string() + ext;
None.or(old_to_new.insert(old.clone(), new.clone()))
.or(new_to_old.insert(new.clone(), old.clone()))
.or(Some(new.clone()))
old_to_new.insert(old.clone(), new.clone()).or(Some(new.clone()))
})
} else {
old_to_new.get(&old).map(|p| p.to_owned())
Expand Down Expand Up @@ -749,7 +746,7 @@ where
cacheable
});

(command_groups, old_to_new, new_to_old, ext_counts)
(command_groups, old_to_new, ext_counts)
})
.map(|t| t.0);

Expand Down

0 comments on commit d00b556

Please sign in to comment.