From e46c16c46ad18d40f21b251bf8995387efa68796 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Fri, 30 Oct 2009 05:58:36 +0000 Subject: libmdoc and libman now using non-recoverable allocations (simpler code). --- mandoc.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'mandoc.c') diff --git a/mandoc.c b/mandoc.c index 086e7cd9..9c4328e6 100644 --- a/mandoc.c +++ b/mandoc.c @@ -150,19 +150,6 @@ mandoc_realloc(void *ptr, size_t size) } -void * -mandoc_reallocf(void *old_ptr, size_t size) /* FIXME: remove (not used) */ -{ - void *ptr; - - ptr = realloc(old_ptr, size); - if (NULL == ptr) - free(old_ptr); - - return(ptr); -} - - char * mandoc_strdup(const char *ptr) { -- cgit