summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2018-11-20 11:43:57 +0000
committerEric Engestrom <[email protected]>2019-07-19 22:39:38 +0100
commit84e85035cff0692c281dd13f18649560efee59f9 (patch)
tree65f8356ff20cdb447cb9be924ef2c067d90d4002 /src/util
parent6301f80b840d50f2f8ec4fc46adfe8ad43da53ab (diff)
util: drop unused strstr() wrapper
Suggested-by: Emil Velikov <[email protected]> Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/u_string.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/util/u_string.h b/src/util/u_string.h
index e4081466459..742f5079fb6 100644
--- a/src/util/u_string.h
+++ b/src/util/u_string.h
@@ -188,19 +188,6 @@ util_strncmp(const char *s1, const char *s2, size_t n)
return 0;
}
-static inline char *
-util_strstr(const char *haystack, const char *needle)
-{
- const char *p = haystack;
- size_t len = strlen(needle);
-
- for (; (p = util_strchr(p, *needle)) != 0; p++) {
- if (util_strncmp(p, needle, len) == 0) {
- return (char *)p;
- }
- }
- return NULL;
-}
#define util_strcasecmp stricmp
@@ -217,7 +204,6 @@ util_strstr(const char *haystack, const char *needle)
#define util_strcmp strcmp
#define util_strncmp strncmp
#define util_strncat strncat
-#define util_strstr strstr
#define util_strcasecmp strcasecmp
#define util_strdup strdup