git-fmt-merge-msg: make it usable from other builtins
[gitweb.git] / parse-options.c
index b8bde2b04a14936787392babf5e0ec0a9e3ef1a7..bbc3ca4a9ffc0c3be829b074cadb2b2a82e43f02 100644 (file)
@@ -22,12 +22,6 @@ static inline const char *get_arg(struct optparse_t *p)
        return *++p->argv;
 }
 
-static inline const char *skip_prefix(const char *str, const char *prefix)
-{
-       size_t len = strlen(prefix);
-       return strncmp(str, prefix, len) ? NULL : str + len;
-}
-
 static int opterror(const struct option *opt, const char *reason, int flags)
 {
        if (flags & OPT_SHORT)