Skip to content

Commit 5dfc79b

Browse files
ammarfaizi2t-8ch
authored andcommitted
tools/nolibc: string: Remove the _nolibc_memcpy_down() function
This nolibc internal function is not used. Delete it. It was probably supposed to handle memmove(), but today the memmove() has its own implementation. Signed-off-by: Ammar Faizi <[email protected]> Reviewed-by: Alviro Iskandar Setiawan <[email protected]> Signed-off-by: Willy Tarreau <[email protected]> Signed-off-by: Thomas Weißschuh <[email protected]>
1 parent 12108aa commit 5dfc79b

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tools/include/nolibc/string.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,6 @@ void *_nolibc_memcpy_up(void *dst, const void *src, size_t len)
3939
return dst;
4040
}
4141

42-
static __attribute__((unused))
43-
void *_nolibc_memcpy_down(void *dst, const void *src, size_t len)
44-
{
45-
while (len) {
46-
len--;
47-
((char *)dst)[len] = ((const char *)src)[len];
48-
}
49-
return dst;
50-
}
51-
5242
#ifndef NOLIBC_ARCH_HAS_MEMMOVE
5343
/* might be ignored by the compiler without -ffreestanding, then found as
5444
* missing.

0 commit comments

Comments
 (0)