fix: remove try_break and try_cont (dead code)

This commit is contained in:
TopchetoEU 2023-09-09 18:12:20 +03:00
parent 1ce5fc9d99
commit 8fb01e1091
Signed by: topchetoeu
GPG Key ID: 6531B8583E5F6ED4

View File

@ -49,18 +49,6 @@ public class TryStatement extends Statement {
finN = target.size() - tmp;
}
// for (int i = start; i < target.size(); i++) {
// if (target.get(i).type == Type.NOP) {
// var instr = target.get(i);
// if (instr.is(0, "break")) {
// target.set(i, Instruction.nop("try_break", instr.get(1), target.size()).locate(instr.location));
// }
// else if (instr.is(0, "cont")) {
// target.set(i, Instruction.nop("try_cont", instr.get(1), target.size()).locate(instr.location));
// }
// }
// }
target.set(start - 1, Instruction.tryInstr(tryN, catchN, finN).locate(loc()));
}