--- projects/libstatgrab/src/libstatgrab/tools.c 2004/11/01 18:30:17 1.57 +++ projects/libstatgrab/src/libstatgrab/tools.c 2004/11/01 20:34:58 1.58 @@ -18,7 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA * - * $Id: tools.c,v 1.57 2004/11/01 18:30:17 tdb Exp $ + * $Id: tools.c,v 1.58 2004/11/01 20:34:58 ats Exp $ */ #ifdef HAVE_CONFIG_H @@ -544,25 +544,3 @@ void *sg_realloc(void *ptr, size_t size) { } return tmp; } - -/* If we don't have a GNU compatible realloc, fake it. */ -#if HAVE_REALLOC == 0 -void *rpl_realloc(void *ptr, size_t size) { - if (ptr == NULL && size == 0) { - return NULL; - } - - if (size == 0) { - free(ptr); - return NULL; - } - - if (ptr == NULL) { - return malloc(size); - } - -#undef realloc - return realloc(ptr, size); -#define realloc rpl_realloc -} -#endif