Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions gix-pack/src/index/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,6 @@ pub enum Version {
V2 = 2,
}

impl Version {
/// The kind of hash to produce to be compatible to this kind of index
pub fn hash(&self) -> gix_hash::Kind {
#[cfg(not(feature = "sha1"))]
unreachable!("pack index versions V1 and V2 require SHA1 support");
#[cfg(feature = "sha1")]
match self {
Version::V1 | Version::V2 => gix_hash::Kind::Sha1,
}
}
}

/// A way to indicate if a lookup, despite successful, was ambiguous or yielded exactly
/// one result in the particular index.
pub type PrefixLookupResult = Result<EntryIndex, ()>;
Expand Down
Binary file not shown.
Binary file not shown.
Loading