Skip to content

Commit 91734f1

Browse files
committed
More cleanup.
1 parent 064bbb8 commit 91734f1

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

compiler/rustc_query_system/src/dep_graph/serialized.rs

-10
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,6 @@ impl ColorAndOffset {
8989
ColorAndOffset(AtomicU64::new(val))
9090
}
9191

92-
#[allow(dead_code)]
93-
fn new(color: DepNodeColor, range: Range<usize>) -> ColorAndOffset {
94-
let start: u32 = range.start.try_into().unwrap();
95-
let end: u32 = range.end.try_into().unwrap();
96-
let val = (start as u64) << 32 | (end as u64);
97-
debug_assert_eq!(val & TAG_MASK, 0);
98-
let val = val | color.tag();
99-
ColorAndOffset(AtomicU64::new(val))
100-
}
101-
10292
fn set_lifted(&self, color: DepNodeColor, range: Range<usize>) {
10393
let start: u32 = range.start.try_into().unwrap();
10494
let end: u32 = range.end.try_into().unwrap();

0 commit comments

Comments
 (0)