summaryrefslogtreecommitdiff
path: root/name-hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'name-hash.c')
-rw-r--r--name-hash.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/name-hash.c b/name-hash.c
index e5b6e1ad23..715f95c10f 100644
--- a/name-hash.c
+++ b/name-hash.c
@@ -263,13 +263,6 @@ struct cache_entry *index_file_exists(struct index_state *istate, const char *na
return NULL;
}
-struct cache_entry *index_name_exists(struct index_state *istate, const char *name, int namelen, int icase)
-{
- if (namelen > 0 && name[namelen - 1] == '/')
- return index_dir_exists(istate, name, namelen - 1);
- return index_file_exists(istate, name, namelen, icase);
-}
-
static int free_dir_entry(void *entry, void *unused)
{
struct dir_entry *dir = entry;