Skip to content

Commit 0383b80

Browse files
authored
Remove the init_state call since it is always NULL for the perf backend
1 parent 2027de6 commit 0383b80

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Python/perf_trampoline.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -423,13 +423,6 @@ _PyPerfTrampoline_Init(int activate)
423423
if (new_code_arena() < 0) {
424424
return -1;
425425
}
426-
if (trampoline_api.state == NULL && trampoline_api.init_state != NULL) {
427-
void *state = trampoline_api.init_state();
428-
if (state == NULL) {
429-
return -1;
430-
}
431-
trampoline_api.state = state;
432-
}
433426
extra_code_index = _PyEval_RequestCodeExtraIndex(NULL);
434427
if (extra_code_index == -1) {
435428
return -1;

0 commit comments

Comments
 (0)