From b097a466c168dcdb3fde435ec4a1e0b63609f55d Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Tue, 25 Jul 2023 20:35:57 +0000 Subject: [PATCH] util: remove unused checked_realloc Usage was removed in 6fe50439 . --- src/util.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/util.h b/src/util.h index 801ea0c88..cf7e5d1af 100644 --- a/src/util.h +++ b/src/util.h @@ -152,14 +152,6 @@ static SECP256K1_INLINE void *checked_malloc(const secp256k1_callback* cb, size_ return ret; } -static SECP256K1_INLINE void *checked_realloc(const secp256k1_callback* cb, void *ptr, size_t size) { - void *ret = realloc(ptr, size); - if (ret == NULL) { - secp256k1_callback_call(cb, "Out of memory"); - } - return ret; -} - #if defined(__BIGGEST_ALIGNMENT__) #define ALIGNMENT __BIGGEST_ALIGNMENT__ #else