Signed-off-by: Bartosz Golaszewski <bartekg...@gmail.com> --- libbb/compare_string_array.c | 7 ------- 1 file changed, 7 deletions(-)
diff --git a/libbb/compare_string_array.c b/libbb/compare_string_array.c index e24815a..fe6d4a5 100644 --- a/libbb/compare_string_array.c +++ b/libbb/compare_string_array.c @@ -7,12 +7,6 @@ char* FAST_FUNC is_prefixed_with(const char *string, const char *key) { -#if 0 /* Two passes over key - probably slower */ - int len = strlen(key); - if (strncmp(string, key, len) == 0) - return string + len; - return NULL; -#else /* Open-coded */ while (*key != '\0') { if (*key != *string) return NULL; @@ -20,7 +14,6 @@ char* FAST_FUNC is_prefixed_with(const char *string, const char *key) string++; } return (char*)string; -#endif } /* returns the array index of the string */ -- 2.1.4 _______________________________________________ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox