Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gvfs-helper-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
8 changes: 0 additions & 8 deletions packfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
7 changes: 0 additions & 7 deletions packfile.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading