Skip to content

Commit 13b8048

Browse files
committed
fixup! packfile: add install_packed_git_and_mru()
This makes the commit trivial and will be dropped in a future update. Signed-off-by: Derrick Stolee <stolee@gmail.com>
1 parent 3eb3cf1 commit 13b8048

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

packfile.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -792,14 +792,6 @@ void packfile_store_add_pack(struct packfile_store *store,
792792
hashmap_add(&store->map, &pack->packmap_ent);
793793
}
794794

795-
void packfile_store_add_pack_also_to_mru(struct repository *r,
796-
struct packed_git *pack)
797-
{
798-
packfile_store_add_pack(r->objects->packfiles, pack);
799-
list_add(&pack->mru,
800-
packfile_store_get_packs_mru(r->objects->packfiles));
801-
}
802-
803795
struct packed_git *packfile_store_load_pack(struct packfile_store *store,
804796
const char *idx_path, int local)
805797
{

packfile.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,6 @@ void packfile_store_reprepare(struct packfile_store *store);
135135
*/
136136
void packfile_store_add_pack(struct packfile_store *store,
137137
struct packed_git *pack);
138-
/*
139-
* Add the pack to the store so that contained objects become accessible via
140-
* the store, and then mark it as most recently used. This moves ownership into
141-
* the store.
142-
*/
143-
void packfile_store_add_pack_also_to_mru(struct repository *r,
144-
struct packed_git *pack);
145138

146139
/*
147140
* Load and iterate through all packs of the given repository. This helper

0 commit comments

Comments
 (0)