diff --git a/gix-pack/src/index/mod.rs b/gix-pack/src/index/mod.rs index e2f78e19e2a..38676eb0a7e 100644 --- a/gix-pack/src/index/mod.rs +++ b/gix-pack/src/index/mod.rs @@ -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; diff --git a/gix-pack/tests/fixtures/generated-archives/make_pack_gen_repo_multi_index_sha256.tar b/gix-pack/tests/fixtures/generated-archives/make_pack_gen_repo_multi_index_sha256.tar new file mode 100644 index 00000000000..e6ec4f94c64 Binary files /dev/null and b/gix-pack/tests/fixtures/generated-archives/make_pack_gen_repo_multi_index_sha256.tar differ diff --git a/gix-pack/tests/fixtures/generated-archives/make_pack_gen_repo_sha256.tar b/gix-pack/tests/fixtures/generated-archives/make_pack_gen_repo_sha256.tar new file mode 100644 index 00000000000..1956506b0bb Binary files /dev/null and b/gix-pack/tests/fixtures/generated-archives/make_pack_gen_repo_sha256.tar differ