summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-12-20 14:23:19 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-12-20 14:24:03 +0900
commitb3690ceb53a97b46aa5bb714d806be97f01c1e3e (patch)
tree5ab5180499d2638683df59889b10bf44e2b992b4
parent7aeb4e9d71aeb59db6a2e40c271536fcff6b1e0e (diff)
downloadlibltdl-r14.0.x.tar.gz
libltdl-r14.0.x.zip
Removed unused code since memcpy is available.r14.0.13r14.0.12r14.0.11r14.0.10r14.0.x
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 0f92944b23894ebef2cb0e931c59b77017998b34)
-rw-r--r--ltdl.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/ltdl.c b/ltdl.c
index be6ce43..9b4dccb 100644
--- a/ltdl.c
+++ b/ltdl.c
@@ -459,35 +459,6 @@ strrchr(str, ch)
# endif
#endif
-/* NOTE: Neither bcopy nor the memcpy implementation below can
- reliably handle copying in overlapping areas of memory, so
- do not rely on this behavior when invoking memcpy later. */
-#if ! HAVE_MEMCPY
-
-# if HAVE_BCOPY
-# define memcpy(dest, src, size) bcopy (src, dest, size)
-# else
-# define memcpy rpl_memcpy
-
-static inline char *
-memcpy (dest, src, size)
- char *dest;
- const char *src;
- size_t size;
-{
- size_t i = 0;
-
- for (i = 0; i < size; ++i)
- {
- dest[i] = src[i];
- }
-
- return dest;
-}
-
-# endif
-#endif
-
/* According to Alexandre Oliva <oliva@lsd.ic.unicamp.br>,
``realloc is not entirely portable''
In any case we want to use the allocator supplied by the user without