about summary refs log tree commit diff
path: root/src/string/strstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string/strstr.c')
-rw-r--r--src/string/strstr.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/string/strstr.c b/src/string/strstr.c
index 683cdd01..06491748 100644
--- a/src/string/strstr.c
+++ b/src/string/strstr.c
@@ -25,16 +25,6 @@ static char *fourbyte_strstr(const unsigned char *h, const unsigned char *n)
 	return *h ? (char *)h-3 : 0;
 }
 
-#if 0
-static char *naive_strstr(const char *h, const char *n)
-{
-	size_t i;
-	for (i=0; n[i] && h[i]; i++)
-	for (   ; n[i] != h[i]; h++, i=0);
-	return n[i] ? 0 : (char *)h;
-}
-#endif
-
 #define MAX(a,b) ((a)>(b)?(a):(b))
 #define MIN(a,b) ((a)<(b)?(a):(b))