aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-09-19 13:55:01 +0000
committerRoy Marples <roy@marples.name>2007-09-19 13:55:01 +0000
commita74dd430d5c513f1e4d8ed13d7865eb24ccc5494 (patch)
treea85f271e9d6979a3831497b9e9b219dc82c41c5a
parent77f9015f0bf09c5ef3c51009e21d8e687006c3e4 (diff)
Punt rc_xcalloc as nothing uses it
-rw-r--r--src/librc-misc.c11
-rw-r--r--src/librc.h1
-rw-r--r--src/rc.h1
3 files changed, 0 insertions, 13 deletions
diff --git a/src/librc-misc.c b/src/librc-misc.c
index 87949059..ebf020e2 100644
--- a/src/librc-misc.c
+++ b/src/librc-misc.c
@@ -19,17 +19,6 @@
# define S_IXUGO (S_IXUSR | S_IXGRP | S_IXOTH)
#endif
-void *rc_xcalloc (size_t n, size_t size)
-{
- void *value = calloc (n, size);
-
- if (value)
- return value;
-
- ERRX
-}
-librc_hidden_def(rc_xcalloc)
-
void *rc_xmalloc (size_t size)
{
void *value = malloc (size);
diff --git a/src/librc.h b/src/librc.h
index ce97b357..397113c6 100644
--- a/src/librc.h
+++ b/src/librc.h
@@ -110,7 +110,6 @@ librc_hidden_proto(rc_strlist_join)
librc_hidden_proto(rc_strlist_reverse)
librc_hidden_proto(rc_update_deptree)
librc_hidden_proto(rc_wait_service)
-librc_hidden_proto(rc_xcalloc)
librc_hidden_proto(rc_xmalloc)
librc_hidden_proto(rc_xrealloc)
librc_hidden_proto(rc_xstrdup)
diff --git a/src/rc.h b/src/rc.h
index 5e5e100a..c0916144 100644
--- a/src/rc.h
+++ b/src/rc.h
@@ -166,7 +166,6 @@ extern FILE *rc_environ_fd;
/* RC utility functions.
Although not directly related to RC in general, they are used by RC
itself and the supporting applications. */
-void *rc_xcalloc (size_t n, size_t size);
void *rc_xmalloc (size_t size);
void *rc_xrealloc (void *ptr, size_t size);
char *rc_xstrdup (const char *str);