From a74dd430d5c513f1e4d8ed13d7865eb24ccc5494 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 19 Sep 2007 13:55:01 +0000 Subject: Punt rc_xcalloc as nothing uses it --- src/librc-misc.c | 11 ----------- src/librc.h | 1 - src/rc.h | 1 - 3 files changed, 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); -- cgit v1.2.3