[PATCH v2 4/6] packfile: drop `packfile_store_get_packs()`
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Oct 9, 2025, 08:01 UTC
- Message-ID
- <20251009-pks-packfiles-convert-get-all-v2-4-0d73b87ce711@pks.im>
- In-Reply-To
- <20251009-pks-packfiles-convert-get-all-v2-0-0d73b87ce711@pks.im>
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> --- packfile.c | 6 ------ packfile.h | 6 ------ 2 files changed, 12 deletions(-)
diff --git a/packfile.c b/packfile.c index 5a7caec292..db748b0bd4 100644 --- a/packfile.c +++ b/packfile.c @@ -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); diff --git a/packfile.h b/packfile.h index e7a5792b6c..3f38c63476 100644 --- a/packfile.h +++ b/packfile.h @@ -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.
-- 2.51.0.764.g787ff6f08a.dirty