diff options
-rw-r--r-- | src/librc-misc.c | 11 | ||||
-rw-r--r-- | src/librc.h | 1 | ||||
-rw-r--r-- | src/rc.h | 1 |
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) @@ -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); |