From 8dafb84e667e81f04b0dace310161d33a37f8f50 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 7 Sep 2018 22:36:12 -0400 Subject: [PATCH] remove unused code from strcpy.c --- src/string/strcpy.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/string/strcpy.c b/src/string/strcpy.c index f7e3ba38..2883e930 100644 --- a/src/string/strcpy.c +++ b/src/string/strcpy.c @@ -4,13 +4,6 @@ char *__stpcpy(char *, const char *); char *strcpy(char *restrict dest, const char *restrict src) { -#if 1 __stpcpy(dest, src); return dest; -#else - const unsigned char *s = src; - unsigned char *d = dest; - while ((*d++ = *s++)); - return dest; -#endif } -- 2.25.1