diff --git a/gvfs-helper-client.c b/gvfs-helper-client.c index 858ec350772b68..a9f0a6fc5eb5f5 100644 --- a/gvfs-helper-client.c +++ b/gvfs-helper-client.c @@ -216,7 +216,7 @@ static void gh_client__update_packed_git(const char *line) p = add_packed_git(the_repository, path.buf, path.len, is_local); if (p) - packfile_store_add_pack_also_to_mru(the_repository, p); + packfile_store_add_pack(the_repository->objects->packfiles, p); strbuf_release(&path); } diff --git a/packfile.c b/packfile.c index 1a74bdb7c5cae2..9fa6b8c97057ab 100644 --- a/packfile.c +++ b/packfile.c @@ -792,14 +792,6 @@ void packfile_store_add_pack(struct packfile_store *store, hashmap_add(&store->map, &pack->packmap_ent); } -void packfile_store_add_pack_also_to_mru(struct repository *r, - struct packed_git *pack) -{ - packfile_store_add_pack(r->objects->packfiles, pack); - list_add(&pack->mru, - packfile_store_get_packs_mru(r->objects->packfiles)); -} - struct packed_git *packfile_store_load_pack(struct packfile_store *store, const char *idx_path, int local) { diff --git a/packfile.h b/packfile.h index a19587e57d1388..1b7e0ef74e11d1 100644 --- a/packfile.h +++ b/packfile.h @@ -135,13 +135,6 @@ void packfile_store_reprepare(struct packfile_store *store); */ void packfile_store_add_pack(struct packfile_store *store, struct packed_git *pack); -/* - * Add the pack to the store so that contained objects become accessible via - * the store, and then mark it as most recently used. This moves ownership into - * the store. - */ -void packfile_store_add_pack_also_to_mru(struct repository *r, - struct packed_git *pack); /* * Load and iterate through all packs of the given repository. This helper