From 8fb01e10910d5a801bc5b5e59de1dc7a75b07287 Mon Sep 17 00:00:00 2001 From: TopchetoEU <36534413+TopchetoEU@users.noreply.github.com> Date: Sat, 9 Sep 2023 18:12:20 +0300 Subject: [PATCH] fix: remove try_break and try_cont (dead code) --- .../jscript/compilation/control/TryStatement.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/me/topchetoeu/jscript/compilation/control/TryStatement.java b/src/me/topchetoeu/jscript/compilation/control/TryStatement.java index a0c763b..0c23230 100644 --- a/src/me/topchetoeu/jscript/compilation/control/TryStatement.java +++ b/src/me/topchetoeu/jscript/compilation/control/TryStatement.java @@ -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())); }