From 8ae354ed4e3443dce7678a4c0ad3bd034bf5305b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 15 May 2012 13:37:25 +0200 Subject: s3: Remove some unused code Autobuild-User: Volker Lendecke Autobuild-Date: Tue May 15 18:24:10 CEST 2012 on sn-devel-104 --- source3/lib/util_malloc.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/util_malloc.c b/source3/lib/util_malloc.c index faff9b03db..ff78db6500 100644 --- a/source3/lib/util_malloc.c +++ b/source3/lib/util_malloc.c @@ -39,20 +39,6 @@ void *malloc_(size_t size) #define malloc(s) __ERROR_DONT_USE_MALLOC_DIRECTLY } -/**************************************************************************** - Internal calloc wrapper. Not externally visible. -****************************************************************************/ - -static void *calloc_(size_t count, size_t size) -{ - if (size == 0 || count == 0) { - return NULL; - } -#undef calloc - return calloc(count, size); -#define calloc(n,s) __ERROR_DONT_USE_CALLOC_DIRECTLY -} - /**************************************************************************** Internal realloc wrapper. Not externally visible. ****************************************************************************/ -- cgit