From: Eric Engestrom Date: Tue, 20 Nov 2018 11:43:57 +0000 (+0000) Subject: util: drop unused strstr() wrapper X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=84e85035cff0692c281dd13f18649560efee59f9;p=mesa.git util: drop unused strstr() wrapper Suggested-by: Emil Velikov Signed-off-by: Eric Engestrom Reviewed-by: Eric Anholt --- 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