From 6494d7045e78a6f00c88c5b7a9dcbde631b57f35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sun, 9 Nov 2025 21:46:33 +0100 Subject: [PATCH] Removed unused ignoredLoops method --- .../flash/abc/avm2/instructions/AVM2Instruction.java | 9 --------- .../src/com/jpexs/decompiler/flash/action/Action.java | 10 ---------- .../jpexs/decompiler/flash/action/swf4/ActionIf.java | 5 ----- .../src/com/jpexs/decompiler/graph/GraphPart.java | 3 --- .../com/jpexs/decompiler/graph/GraphSourceItem.java | 7 ------- 5 files changed, 34 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/AVM2Instruction.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/AVM2Instruction.java index d5d89501a..a5675bff2 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/AVM2Instruction.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/AVM2Instruction.java @@ -748,15 +748,6 @@ public class AVM2Instruction implements Cloneable, GraphSourceItem { return ret; } - /** - * Checks whether the loops are ignored. - * - * @return True if the loops are ignored, false otherwise - */ - @Override - public boolean ignoredLoops() { - return false; - } /** * Sets whether this item is ignored. diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/Action.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/Action.java index 3f0991ec4..3851a88b4 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/Action.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/Action.java @@ -1433,16 +1433,6 @@ public abstract class Action implements GraphSourceItem { return ti; } - /** - * Checks whether the loops are ignored. - * - * @return True if the loops are ignored, false otherwise - */ - @Override - public boolean ignoredLoops() { - return false; - } - /** * Sets constant pool to actions. * diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionIf.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionIf.java index 1dd54d484..ef776593e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionIf.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionIf.java @@ -192,9 +192,4 @@ public class ActionIf extends Action { ret.add(after); return ret; } - - @Override - public boolean ignoredLoops() { - return false; //compileTime; - } } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphPart.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphPart.java index 95ad08712..6c9142969 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphPart.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphPart.java @@ -180,9 +180,6 @@ public class GraphPart implements Serializable { continue; } visited.add(thisPart); - if (thisPart.end < code.size() && code.get(thisPart.end).isBranch() && (code.get(thisPart.end).ignoredLoops())) { - continue; - } for (GraphPart p : thisPart.nextParts) { if (p == part) { return true; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphSourceItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphSourceItem.java index 2492dfb67..9a8cd3826 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphSourceItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphSourceItem.java @@ -99,13 +99,6 @@ public interface GraphSourceItem extends Serializable, Cloneable { */ public long getLineOffset(); - /** - * Checks whether the loops are ignored. FIXME: What is this, how to use it? - * - * @return True if the loops are ignored, false otherwise - */ - public boolean ignoredLoops(); - /** * Gets branches *