From 399e5d8f8a6855508889ccf3586bc25114c36a5c Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 9 Aug 2015 17:22:53 -0400 Subject: [PATCH] cleanup athrow --- .../attributes/code/instructions/AThrow.java | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/src/main/java/info/sigterm/deob/attributes/code/instructions/AThrow.java b/src/main/java/info/sigterm/deob/attributes/code/instructions/AThrow.java index 7aa7afe1f6..e443284eee 100644 --- a/src/main/java/info/sigterm/deob/attributes/code/instructions/AThrow.java +++ b/src/main/java/info/sigterm/deob/attributes/code/instructions/AThrow.java @@ -29,38 +29,6 @@ public class AThrow extends Instruction StackContext exception = stack.pop(); ins.pop(exception); -// // Clear stack -// while (stack.getSize() > 0) -// { -// StackContext value = stack.pop(); -// ins.pop(value); -// } -// -// // push exception back -// exception = new StackContext(ins, exception.getType()); -// stack.push(exception); -// -// // jump to instruction handlers that can catch exceptions here -// for (info.sigterm.deob.attributes.code.Exception e : this.getInstructions().getCode().getExceptions().getExceptions()) -// { -// int startIdx = this.getInstructions().getInstructions().indexOf(e.getStart()), -// endIdx = this.getInstructions().getInstructions().indexOf(e.getEnd()), -// thisIdx = this.getInstructions().getInstructions().indexOf(this); -// -// assert startIdx != -1; -// assert endIdx != -1; -// assert thisIdx != -1; -// -// // [start, end) -// if (thisIdx >= startIdx && thisIdx < endIdx) -// { -// Frame f = frame.dup(); -// f.jump(e.getHandler()); -// } -// } -// -// frame.addInstructionContext(ins); - frame.stop(); }