Skip to content

Commit

Permalink
util: remove unused checked_realloc
Browse files Browse the repository at this point in the history
Usage was removed in 6fe5043 .
  • Loading branch information
theuni committed Jul 25, 2023
1 parent 2bd5f3e commit b097a46
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b097a46

Please sign in to comment.