From 452926a5ec54e5700657d28b2cb8e46c4bbaa0a9 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sun, 21 Sep 2014 16:32:57 -0700 Subject: mesa: Use realloc() instead of _mesa_realloc() and remove the latter. Reviewed-by: Ian Romanick --- src/mesa/main/imports.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/mesa/main/imports.c') diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c index 4afe156b031..c5a7d63fb51 100644 --- a/src/mesa/main/imports.c +++ b/src/mesa/main/imports.c @@ -209,20 +209,6 @@ _mesa_align_realloc(void *oldBuffer, size_t oldSize, size_t newSize, #endif } - - -/** Reallocate memory */ -void * -_mesa_realloc(void *oldBuffer, size_t oldSize, size_t newSize) -{ - const size_t copySize = (oldSize < newSize) ? oldSize : newSize; - void *newBuffer = malloc(newSize); - if (newBuffer && oldBuffer && copySize > 0) - memcpy(newBuffer, oldBuffer, copySize); - free(oldBuffer); - return newBuffer; -} - /*@}*/ -- cgit v1.2.3