Skip to content

Commit d655709

Browse files
committed
remove dead code
1 parent 05c6089 commit d655709

File tree

2 files changed

+3
-47
lines changed

2 files changed

+3
-47
lines changed

Python/optimizer_bytecodes.c

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -638,31 +638,6 @@ dummy_func(void) {
638638
}
639639
}
640640

641-
op(_TO_BOOL_DICT, (value -- res)) {
642-
int already_bool = optimize_to_bool(this_instr, ctx, value, &res,
643-
_POP_TOP, _NOP);
644-
if (!already_bool) {
645-
sym_set_type(value, &PyDict_Type);
646-
res = sym_new_truthiness(ctx, value, true);
647-
}
648-
}
649-
650-
op(_TO_BOOL_SIZED, (value -- res)) {
651-
int already_bool = optimize_to_bool(this_instr, ctx, value, &res,
652-
_POP_TOP, _NOP);
653-
if (!already_bool) {
654-
res = sym_new_truthiness(ctx, value, true);
655-
}
656-
}
657-
658-
op(_TO_BOOL_ANY_SET, (value -- res)) {
659-
int already_bool = optimize_to_bool(this_instr, ctx, value, &res,
660-
_POP_TOP, _NOP);
661-
if (!already_bool) {
662-
res = sym_new_truthiness(ctx, value, true);
663-
}
664-
}
665-
666641
op(_UNARY_NOT, (value -- res)) {
667642
REPLACE_OPCODE_IF_EVALUATES_PURE(value, res);
668643
sym_set_type(value, &PyBool_Type);

Python/optimizer_cases.c.h

Lines changed: 3 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)