Remove more unused code. - sam - An updated version of the sam text editor.
(HTM) git clone git://vernunftzentrum.de/sam.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit d6d60bb4570fe04e92162988007b39037637954c
(DIR) parent 88e512d6b6c80963bb5c123b7daaf48298fb86c7
(HTM) Author: Rob King <jking@deadpixi.com>
Date: Tue, 6 Sep 2016 17:40:07 -0500
Remove more unused code.
Diffstat:
libframe/misc.c | 44 -------------------------------
1 file changed, 0 insertions(+), 44 deletions(-)
---
(DIR) diff --git a/libframe/misc.c b/libframe/misc.c
@@ -35,47 +35,3 @@ getuser(void)
user = "unknown";
return user;
}
-
-#ifdef NEEDSTRERROR
-char *
-strerror(int n)
-{
- extern char *sys_errlist[];
- return sys_errlist[n];
-}
-#endif /* NEEDSTRERROR */
-
-#ifdef NEEDMEMMOVE
-/*
- * memcpy is probably fast, but may not work with overlap
- */
-void*
-memmove(void *a1, const void *a2, size_t n)
-{
- char *s1;
- const char *s2;
-
- s1 = a1;
- s2 = a2;
- if(s1 > s2)
- goto back;
- if(s1 + n <= s2)
- return memcpy(a1, a2, n);
- while(n > 0) {
- *s1++ = *s2++;
- n--;
- }
- return a1;
-
-back:
- s2 += n;
- if(s2 <= s1)
- return memcpy(a1, a2, n);
- s1 += n;
- while(n > 0) {
- *--s1 = *--s2;
- n--;
- }
- return a1;
-}
-#endif /* NEEDMEMMOVE */