Skip to content

Commit 00b6a1f

Browse files
committed
Kill more "unused" literals
1 parent 05d1263 commit 00b6a1f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Tools/cases_generator/generate_cases.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -435,11 +435,11 @@ def analyze_super(self, supe: parser.Super) -> SuperInstruction:
435435
input_mapping = {}
436436
for ieffect in reversed(instr.input_effects):
437437
sp -= 1
438-
if ieffect.name != "unused":
438+
if ieffect.name != UNUSED:
439439
input_mapping[stack[sp]] = ieffect
440440
output_mapping = {}
441441
for oeffect in instr.output_effects:
442-
if oeffect.name != "unused":
442+
if oeffect.name != UNUSED:
443443
output_mapping[stack[sp]] = oeffect
444444
sp += 1
445445
parts.append(Component(instr, input_mapping, output_mapping))
@@ -461,11 +461,11 @@ def analyze_macro(self, supe: parser.Macro) -> MacroInstruction:
461461
input_mapping = {}
462462
for ieffect in reversed(instr.input_effects):
463463
sp -= 1
464-
if ieffect.name != "unused":
464+
if ieffect.name != UNUSED:
465465
input_mapping[stack[sp]] = ieffect
466466
output_mapping = {}
467467
for oeffect in instr.output_effects:
468-
if oeffect.name != "unused":
468+
if oeffect.name != UNUSED:
469469
output_mapping[stack[sp]] = oeffect
470470
sp += 1
471471
parts.append(Component(instr, input_mapping, output_mapping))

0 commit comments

Comments
 (0)