File tree 2 files changed +0
-15
lines changed
2 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -57,12 +57,6 @@ impl Hasher {
57
57
} ) ,
58
58
}
59
59
}
60
-
61
- /// Finalize the hash and produce an object ID.
62
- #[ inline]
63
- pub fn finalize ( self ) -> crate :: ObjectId {
64
- self . try_finalize ( ) . expect ( "Detected SHA-1 collision attack" )
65
- }
66
60
}
67
61
68
62
/// Produce a hasher suitable for the given kind of hash.
Original file line number Diff line number Diff line change @@ -416,15 +416,6 @@ pub fn compute_hash(
416
416
hasher. try_finalize ( )
417
417
}
418
418
419
- /// A function to compute a hash of kind `hash_kind` for an object of `object_kind` and its `data`.
420
- pub fn try_compute_hash (
421
- hash_kind : gix_hash:: Kind ,
422
- object_kind : Kind ,
423
- data : & [ u8 ] ,
424
- ) -> Result < gix_hash:: ObjectId , gix_hash:: hasher:: Error > {
425
- compute_hash ( hash_kind, object_kind, data)
426
- }
427
-
428
419
/// A function to compute a hash of kind `hash_kind` for an object of `object_kind` and its data read from `stream`
429
420
/// which has to yield exactly `stream_len` bytes.
430
421
/// Use `progress` to learn about progress in bytes processed and `should_interrupt` to be able to abort the operation
You can’t perform that action at this time.
0 commit comments