summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2013-12-01 07:49:18 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-12-05 22:13:56 (GMT)
commit666c90b6290dae0f4d3672a2b0caf6dea67dd1e3 (patch)
tree007725bca1f345c85340cefa242ba28b4325e680 /git-compat-util.h
parent59556548230e617b837343c2c07e357e688e2ca4 (diff)
downloadgit-666c90b6290dae0f4d3672a2b0caf6dea67dd1e3.zip
git-666c90b6290dae0f4d3672a2b0caf6dea67dd1e3.tar.gz
git-666c90b6290dae0f4d3672a2b0caf6dea67dd1e3.tar.bz2
strbuf: remove prefixcmp() and suffixcmp()
As starts_with() and ends_with() have been used to replace prefixcmp() and suffixcmp() respectively, we can now remove them. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index b73916b..c4c01e7 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -351,9 +351,7 @@ extern void set_error_routine(void (*routine)(const char *err, va_list params));
extern void set_die_is_recursing_routine(int (*routine)(void));
extern int starts_with(const char *str, const char *prefix);
-extern int prefixcmp(const char *str, const char *prefix);
extern int ends_with(const char *str, const char *suffix);
-extern int suffixcmp(const char *str, const char *suffix);
static inline const char *skip_prefix(const char *str, const char *prefix)
{