Skip to content

Commit b097a46

Browse files
committed
util: remove unused checked_realloc
Usage was removed in 6fe5043 .
1 parent 2bd5f3e commit b097a46

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/util.h

-8
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,6 @@ static SECP256K1_INLINE void *checked_malloc(const secp256k1_callback* cb, size_
152152
return ret;
153153
}
154154

155-
static SECP256K1_INLINE void *checked_realloc(const secp256k1_callback* cb, void *ptr, size_t size) {
156-
void *ret = realloc(ptr, size);
157-
if (ret == NULL) {
158-
secp256k1_callback_call(cb, "Out of memory");
159-
}
160-
return ret;
161-
}
162-
163155
#if defined(__BIGGEST_ALIGNMENT__)
164156
#define ALIGNMENT __BIGGEST_ALIGNMENT__
165157
#else

0 commit comments

Comments
 (0)