Skip to content

Commit a2d1939

Browse files
pks-tgitster
authored andcommitted
packfile: drop packfile_store_get_packs()
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0ac7ee9 commit a2d1939

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

packfile.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,12 +1027,6 @@ void packfile_store_reprepare(struct packfile_store *store)
10271027
packfile_store_prepare(store);
10281028
}
10291029

1030-
struct packed_git *packfile_store_get_packs(struct packfile_store *store)
1031-
{
1032-
packfile_store_prepare(store);
1033-
return store->packs;
1034-
}
1035-
10361030
struct packed_git *packfile_store_get_all_packs(struct packfile_store *store)
10371031
{
10381032
packfile_store_prepare(store);

packfile.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,6 @@ void packfile_store_reprepare(struct packfile_store *store);
136136
void packfile_store_add_pack(struct packfile_store *store,
137137
struct packed_git *pack);
138138

139-
/*
140-
* Get packs managed by the given store. Does not load the MIDX or any packs
141-
* referenced by it.
142-
*/
143-
struct packed_git *packfile_store_get_packs(struct packfile_store *store);
144-
145139
/*
146140
* Get all packs managed by the given store, including packfiles that are
147141
* referenced by multi-pack indices.

0 commit comments

Comments
 (0)