Skip to content

Commit cc683fd

Browse files
committed
Remove some dead code.
1 parent 1a8692d commit cc683fd

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

src/cargo/core/compiler/fingerprint.rs

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -782,9 +782,6 @@ impl LocalFingerprint {
782782
}
783783
}
784784

785-
#[derive(Debug)]
786-
struct MtimeSlot(Mutex<Option<FileTime>>);
787-
788785
impl Fingerprint {
789786
fn new() -> Fingerprint {
790787
Fingerprint {
@@ -1153,37 +1150,6 @@ impl hash::Hash for Fingerprint {
11531150
}
11541151
}
11551152

1156-
impl hash::Hash for MtimeSlot {
1157-
fn hash<H: Hasher>(&self, h: &mut H) {
1158-
self.0.lock().unwrap().hash(h)
1159-
}
1160-
}
1161-
1162-
impl ser::Serialize for MtimeSlot {
1163-
fn serialize<S>(&self, s: S) -> Result<S::Ok, S::Error>
1164-
where
1165-
S: ser::Serializer,
1166-
{
1167-
self.0
1168-
.lock()
1169-
.unwrap()
1170-
.map(|ft| (ft.unix_seconds(), ft.nanoseconds()))
1171-
.serialize(s)
1172-
}
1173-
}
1174-
1175-
impl<'de> de::Deserialize<'de> for MtimeSlot {
1176-
fn deserialize<D>(d: D) -> Result<MtimeSlot, D::Error>
1177-
where
1178-
D: de::Deserializer<'de>,
1179-
{
1180-
let kind: Option<(i64, u32)> = de::Deserialize::deserialize(d)?;
1181-
Ok(MtimeSlot(Mutex::new(
1182-
kind.map(|(s, n)| FileTime::from_unix_time(s, n)),
1183-
)))
1184-
}
1185-
}
1186-
11871153
impl DepFingerprint {
11881154
fn new(cx: &mut Context<'_, '_>, parent: &Unit, dep: &UnitDep) -> CargoResult<DepFingerprint> {
11891155
let fingerprint = calculate(cx, &dep.unit)?;

0 commit comments

Comments
 (0)