summaryrefslogtreecommitdiffstats
path: root/tools/lib/subcmd/subcmd-util.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/subcmd/subcmd-util.h')
-rw-r--r--tools/lib/subcmd/subcmd-util.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/tools/lib/subcmd/subcmd-util.h b/tools/lib/subcmd/subcmd-util.h
index fc2e45d8aaf1..8fa5f036eff0 100644
--- a/tools/lib/subcmd/subcmd-util.h
+++ b/tools/lib/subcmd/subcmd-util.h
@@ -79,13 +79,4 @@ static inline void astrcat(char **out, const char *add)
free(tmp);
}
-static inline int prefixcmp(const char *str, const char *prefix)
-{
- for (; ; str++, prefix++)
- if (!*prefix)
- return 0;
- else if (*str != *prefix)
- return (unsigned char)*prefix - (unsigned char)*str;
-}
-
#endif /* __SUBCMD_UTIL_H */