aboutsummaryrefslogtreecommitdiff
path: root/name-hash.c
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2014-01-02 16:57:12 -0500
committerJunio C Hamano <gitster@pobox.com>2014-02-24 15:26:33 -0800
commit7b359ea6b3333a87fd3fa8b84913f2b75ed244ad (patch)
treee86f62d75e9ff47be8f4231d9ee22a8eb4c5add5 /name-hash.c
parentb6aad994737458177ddf68939719f90e7909f656 (diff)
downloadgit-7b359ea6b3333a87fd3fa8b84913f2b75ed244ad.tar.gz
git-7b359ea6b3333a87fd3fa8b84913f2b75ed244ad.tar.xz
name-hash: retire unused index_name_exists()
db5360f3f496 (name-hash: refactor polymorphic index_name_exists(); 2013-09-17) split index_name_exists() into index_file_exists() and index_dir_exists() but retained index_name_exists() as a thin wrapper to avoid disturbing possible in-flight topics. Since this change landed in 'master' some time ago and there are no in-flight topics referencing index_name_exists(), retire it. Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'name-hash.c')
-rw-r--r--name-hash.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/name-hash.c b/name-hash.c
index 9a3bd3f9a..97444d020 100644
--- a/name-hash.c
+++ b/name-hash.c
@@ -115,7 +115,7 @@ static int cache_entry_cmp(const struct cache_entry *ce1,
{
/*
* For remove_name_hash, find the exact entry (pointer equality); for
- * index_name_exists, find all entries with matching hash code and
+ * index_file_exists, find all entries with matching hash code and
* decide whether the entry matches in same_name.
*/
return remove ? !(ce1 == ce2) : 0;
@@ -227,13 +227,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);
-}
-
void free_name_hash(struct index_state *istate)
{
if (!istate->name_hash_initialized)