From: rexim Date: Sun, 5 Jan 2020 16:29:37 +0000 (+0700) Subject: Remove nth_realloc X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=6f05c062158dc14a5967dbe2204004f068ab5395;p=nothing.git Remove nth_realloc --- diff --git a/src/system/nth_alloc.c b/src/system/nth_alloc.c index bcf946c6..59bc7cb7 100644 --- a/src/system/nth_alloc.c +++ b/src/system/nth_alloc.c @@ -12,14 +12,3 @@ void *nth_calloc(size_t num, size_t size) return mem; } - -void *nth_realloc(void *ptr, size_t new_size) -{ - void *mem = realloc(ptr, new_size); - - if (mem == NULL) { - log_fail("nth_realloc(0x%x, %lu) failed", ptr, new_size); - } - - return mem; -} diff --git a/src/system/nth_alloc.h b/src/system/nth_alloc.h index 8968b34b..63ac3f74 100644 --- a/src/system/nth_alloc.h +++ b/src/system/nth_alloc.h @@ -4,6 +4,5 @@ #include void *nth_calloc(size_t num, size_t size); -void *nth_realloc(void *ptr, size_t new_size); #endif // NTH_ALLOC_H_