Skip to content

Commit 875b0ad

Browse files
committed
tests: remove unnecessary set_illegal_callback
1 parent 727bec5 commit 875b0ad

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/tests.c

-2
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,6 @@ static void run_scratch_tests(void) {
496496
secp256k1_scratch_space *scratch;
497497
secp256k1_scratch_space local_scratch;
498498

499-
secp256k1_context_set_illegal_callback(CTX, counting_illegal_callback_fn, &ecount);
500499
secp256k1_context_set_error_callback(CTX, counting_illegal_callback_fn, &ecount);
501500

502501
/* Test public API */
@@ -567,7 +566,6 @@ static void run_scratch_tests(void) {
567566
/* cleanup */
568567
secp256k1_scratch_space_destroy(CTX, NULL); /* no-op */
569568

570-
secp256k1_context_set_illegal_callback(CTX, NULL, NULL);
571569
secp256k1_context_set_error_callback(CTX, NULL, NULL);
572570
}
573571

0 commit comments

Comments
 (0)