dir.c: remove dead function fnmatch_icase()

It was largely replaced by fnmatch_icase_mem() and its last use was in 84b8b5d (remove match_pathspec() in favor of match_pathspec_depth() - 2013-07-14). Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed Apr 22, 2016 at 19:25 UTC 423b592a06876a90f584884d4381dcf4d41f6b3b
2 files changed -8
dir.c
-7
@@ -64,13 +64,6 @@ int strncmp_icase(const char *a, const char *b, size_t count)
64 return ignore_case ? strncasecmp(a, b, count) : strncmp(a, b, count);
65 }
66
67 -int fnmatch_icase(const char *pattern, const char *string, int flags)
68 -{
69 - return wildmatch(pattern, string,
70 - flags | (ignore_case ? WM_CASEFOLD : 0),
71 - NULL);
72 -}
73 -
67 int git_fnmatch(const struct pathspec_item *item,
68 const char *pattern, const char *string,
69 int prefix)
dir.h
-1
@@ -272,7 +272,6 @@ extern int remove_path(const char *path);
272
273 extern int strcmp_icase(const char *a, const char *b);
274 extern int strncmp_icase(const char *a, const char *b, size_t count);
275 -extern int fnmatch_icase(const char *pattern, const char *string, int flags);
275
276 /*
277 * The prefix part of pattern must not contains wildcards.