]> git.ipfire.org Git - thirdparty/git.git/commitdiff
packfile: drop `packfile_store_get_packs()`
authorPatrick Steinhardt <ps@pks.im>
Thu, 9 Oct 2025 08:01:38 +0000 (10:01 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 Oct 2025 21:42:39 +0000 (14:42 -0700)
In the preceding commits we have removed all remaining callers of
`packfile_store_get_packs()`, the function is thus unused now. Remove
it.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
packfile.c
packfile.h

index 5a7caec29259771d2f15e9ac4979c0eec964251a..db748b0bd48c2716d71a4c8b7fedb38a43e90a8f 100644 (file)
@@ -1027,12 +1027,6 @@ void packfile_store_reprepare(struct packfile_store *store)
        packfile_store_prepare(store);
 }
 
-struct packed_git *packfile_store_get_packs(struct packfile_store *store)
-{
-       packfile_store_prepare(store);
-       return store->packs;
-}
-
 struct packed_git *packfile_store_get_all_packs(struct packfile_store *store)
 {
        packfile_store_prepare(store);
index e7a5792b6cf691453e116ce541abf6e3280066f6..3f38c63476dcc164346061b220c679d1d4c77723 100644 (file)
@@ -136,12 +136,6 @@ void packfile_store_reprepare(struct packfile_store *store);
 void packfile_store_add_pack(struct packfile_store *store,
                             struct packed_git *pack);
 
-/*
- * Get packs managed by the given store. Does not load the MIDX or any packs
- * referenced by it.
- */
-struct packed_git *packfile_store_get_packs(struct packfile_store *store);
-
 /*
  * Get all packs managed by the given store, including packfiles that are
  * referenced by multi-pack indices.