diff options
author | Matt Turner <mattst88@gmail.com> | 2014-09-21 16:32:57 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2014-09-24 09:58:42 -0700 |
commit | 452926a5ec54e5700657d28b2cb8e46c4bbaa0a9 (patch) | |
tree | dcbd417d2ade077e18f25bf31afb4022138dc9a1 /src/mesa/main/imports.c | |
parent | e5162defc8169a1d0a06e16c65c5f63b98923426 (diff) | |
download | external_mesa3d-452926a5ec54e5700657d28b2cb8e46c4bbaa0a9.zip external_mesa3d-452926a5ec54e5700657d28b2cb8e46c4bbaa0a9.tar.gz external_mesa3d-452926a5ec54e5700657d28b2cb8e46c4bbaa0a9.tar.bz2 |
mesa: Use realloc() instead of _mesa_realloc() and remove the latter.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/mesa/main/imports.c')
-rw-r--r-- | src/mesa/main/imports.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c index 4afe156..c5a7d63 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; -} - /*@}*/ |