From: Rich Felker Date: Sat, 8 Sep 2018 02:36:12 +0000 (-0400) Subject: remove unused code from strcpy.c X-Git-Tag: v1.1.21~145 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8dafb84e667e81f04b0dace310161d33a37f8f50;p=oweals%2Fmusl.git remove unused code from strcpy.c --- 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 }