Skip to content

Commit

Permalink
tests: remove unnecessary set_illegal_callback
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasnick committed Sep 4, 2023
1 parent 727bec5 commit 875b0ad
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,6 @@ static void run_scratch_tests(void) {
secp256k1_scratch_space *scratch;
secp256k1_scratch_space local_scratch;

secp256k1_context_set_illegal_callback(CTX, counting_illegal_callback_fn, &ecount);
secp256k1_context_set_error_callback(CTX, counting_illegal_callback_fn, &ecount);

/* Test public API */
Expand Down Expand Up @@ -567,7 +566,6 @@ static void run_scratch_tests(void) {
/* cleanup */
secp256k1_scratch_space_destroy(CTX, NULL); /* no-op */

secp256k1_context_set_illegal_callback(CTX, NULL, NULL);
secp256k1_context_set_error_callback(CTX, NULL, NULL);
}

Expand Down

0 comments on commit 875b0ad

Please sign in to comment.