summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-09-07 22:36:12 -0400
committerRich Felker <dalias@aerifal.cx>2018-09-12 14:34:30 -0400
commit8dafb84e667e81f04b0dace310161d33a37f8f50 (patch)
tree4d0e712ff3293decb34beaff99cc7d6fa290b38a /src
parent432f9f0e315a7df8e0c5dc820f0f77279b908bb1 (diff)
downloadmusl-8dafb84e667e81f04b0dace310161d33a37f8f50.tar.gz
remove unused code from strcpy.c
Diffstat (limited to 'src')
-rw-r--r--src/string/strcpy.c7
1 files changed, 0 insertions, 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
}