diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-09-28 15:02:22 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-09-28 15:12:04 -0700 |
commit | 6a99fa2e9eaeb3347f9d129e1231d3e15353105d (patch) | |
tree | e67281736061f5d3bfe648c5290617344ae88567 /refs/ref-cache.c | |
parent | refs/ref-cache.[ch]: remove unused remove_entry_from_dir() (diff) | |
download | tgif-6a99fa2e9eaeb3347f9d129e1231d3e15353105d.tar.xz |
refs/ref-cache.[ch]: remove unused add_ref_entry()
This function has not been used since 9dd389f3d8d (packed_ref_store:
get rid of the `ref_cache` entirely, 2017-09-25).
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/ref-cache.c')
-rw-r--r-- | refs/ref-cache.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/refs/ref-cache.c b/refs/ref-cache.c index e0feebf628..a28883768c 100644 --- a/refs/ref-cache.c +++ b/refs/ref-cache.c @@ -212,15 +212,6 @@ struct ref_entry *find_ref_entry(struct ref_dir *dir, const char *refname) return (entry->flag & REF_DIR) ? NULL : entry; } -int add_ref_entry(struct ref_dir *dir, struct ref_entry *ref) -{ - dir = find_containing_dir(dir, ref->name, 1); - if (!dir) - return -1; - add_entry_to_dir(dir, ref); - return 0; -} - /* * Emit a warning and return true iff ref1 and ref2 have the same name * and the same oid. Die if they have the same name but different |