Skip to content

Commit 423b592

Browse files
pcloudsgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6a66362 commit 423b592

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

dir.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,6 @@ int strncmp_icase(const char *a, const char *b, size_t count)
6464
return ignore_case ? strncasecmp(a, b, count) : strncmp(a, b, count);
6565
}
6666

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-
7467
int git_fnmatch(const struct pathspec_item *item,
7568
const char *pattern, const char *string,
7669
int prefix)

dir.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,6 @@ extern int remove_path(const char *path);
272272

273273
extern int strcmp_icase(const char *a, const char *b);
274274
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);
276275

277276
/*
278277
* The prefix part of pattern must not contains wildcards.

0 commit comments

Comments
 (0)