Remove unused helpers - noice - small file browser (mirror / fork from 2f30.org)
(HTM) git clone git://git.codemadness.org/noice
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit a4c4570b0b249bebe74951f3ca8887ea6c644c12
(DIR) parent b1935acd165dfe91f57ec9e814588cc33ec0e31f
(HTM) Author: sin <sin@2f30.org>
Date: Fri, 23 Aug 2019 10:57:54 +0100
Remove unused helpers
Diffstat:
M noice.c | 22 ----------------------
1 file changed, 0 insertions(+), 22 deletions(-)
---
(DIR) diff --git a/noice.c b/noice.c
@@ -95,17 +95,6 @@ void printwarn(void);
void printerr(int, char *);
void *
-xmalloc(size_t size)
-{
- void *p;
-
- p = malloc(size);
- if (p == NULL)
- printerr(1, "malloc");
- return p;
-}
-
-void *
xrealloc(void *p, size_t size)
{
p = realloc(p, size);
@@ -114,17 +103,6 @@ xrealloc(void *p, size_t size)
return p;
}
-char *
-xstrdup(const char *s)
-{
- char *p;
-
- p = strdup(s);
- if (p == NULL)
- printerr(1, "strdup");
- return p;
-}
-
/* Some implementations of dirname(3) may modify `path' and some
* return a pointer inside `path'. */
char *