aboutsummaryrefslogtreecommitdiff
path: root/src/string
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/string
parent432f9f0e315a7df8e0c5dc820f0f77279b908bb1 (diff)
downloadmusl-8dafb84e667e81f04b0dace310161d33a37f8f50.zip
musl-8dafb84e667e81f04b0dace310161d33a37f8f50.tar.gz
musl-8dafb84e667e81f04b0dace310161d33a37f8f50.tar.bz2
remove unused code from strcpy.c
Diffstat (limited to 'src/string')
-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 f7e3ba3..2883e93 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
}