diff options
| author | Karthik Nayak <karthik.188@gmail.com> | 2025-07-15 13:28:27 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-07-15 11:54:19 -0700 |
| commit | 883a7ea0543426d0ecb172c72c8f706348961605 (patch) | |
| tree | 325cadf91fe09702957869afd26ae494baba6771 /refs/ref-cache.c | |
| parent | 6bde5d43b769509141d7ebc0b2476bc2035bc673 (diff) | |
| download | git-883a7ea0543426d0ecb172c72c8f706348961605.tar.gz | |
ref-cache: remove unused function 'find_ref_entry()'
The 'find_ref_entry' function is no longer used, so remove it.
Signed-off-by: Karthik Nayak <karthik.188@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 | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/refs/ref-cache.c b/refs/ref-cache.c index c1f1bab1d5..8aaffa8c6b 100644 --- a/refs/ref-cache.c +++ b/refs/ref-cache.c @@ -194,20 +194,6 @@ static struct ref_dir *find_containing_dir(struct ref_dir *dir, return dir; } -struct ref_entry *find_ref_entry(struct ref_dir *dir, const char *refname) -{ - int entry_index; - struct ref_entry *entry; - dir = find_containing_dir(dir, refname); - if (!dir) - return NULL; - entry_index = search_ref_dir(dir, refname, strlen(refname)); - if (entry_index == -1) - return NULL; - entry = dir->entries[entry_index]; - return (entry->flag & REF_DIR) ? NULL : entry; -} - /* * 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 |
