diff options
Diffstat (limited to 'git-compat-util.h')
-rw-r--r-- | git-compat-util.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index 1c9c68cb89..47a49c355d 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -578,13 +578,6 @@ static inline size_t xsize_t(off_t len) return (size_t)len; } -static inline int has_extension(const char *filename, const char *ext) -{ - size_t len = strlen(filename); - size_t extlen = strlen(ext); - return len > extlen && !memcmp(filename + len - extlen, ext, extlen); -} - /* in ctype.c, for kwset users */ extern const char tolower_trans_tbl[256]; |