From d4a74501b7888127871f299f207acdcc18a6617b Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 24 Mar 2016 15:13:11 -0400 Subject: [PATCH] Just run once --- .../deobfuscators/IllegalStateExceptions.java | 21 +++---------------- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/src/main/java/net/runelite/deob/deobfuscators/IllegalStateExceptions.java b/src/main/java/net/runelite/deob/deobfuscators/IllegalStateExceptions.java index ba15bc4a7c..1814215e45 100644 --- a/src/main/java/net/runelite/deob/deobfuscators/IllegalStateExceptions.java +++ b/src/main/java/net/runelite/deob/deobfuscators/IllegalStateExceptions.java @@ -34,8 +34,6 @@ public class IllegalStateExceptions implements Deobfuscator if (c == null) continue; - //assert execution.methods.contains(m); - Instructions instructions = c.getInstructions(); instructions.buildJumpGraph(); @@ -107,7 +105,6 @@ public class IllegalStateExceptions implements Deobfuscator ilist.add(i, g); ++count; - break; } } } @@ -122,21 +119,9 @@ public class IllegalStateExceptions implements Deobfuscator Execution execution = new Execution(group); execution.populateInitialMethods(); execution.run(); - - int count = 0; - int passes = 0; - int i; - do - { - i = checkOnce(execution, group); - - System.out.println("ise removal pass " + passes + " removed " + i); + + int count = checkOnce(execution, group); - count += i; - ++passes; - } - while (i > 0); - - System.out.println("Removed " + count + " illegal state exceptions in " + passes + " passes"); + System.out.println("Removed " + count + " illegal state exceptions"); } }