]> asedeno.scripts.mit.edu Git - git.git/blobdiff - parse-options.c
Merge branch 'jc/add-addremove'
[git.git] / parse-options.c
index ae88885d4da573c85dbfbeea3061f3b026223710..987b0157192b9fe4c7451d94f5948bdbd7f524bb 100644 (file)
@@ -5,12 +5,6 @@
 #define OPT_SHORT 1
 #define OPT_UNSET 2
 
-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)
@@ -220,7 +214,7 @@ is_abbreviated:
        return -2;
 }
 
-void check_typos(const char *arg, const struct option *options)
+static void check_typos(const char *arg, const struct option *options)
 {
        if (strlen(arg) < 3)
                return;