diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/fastactionlist/FastActionList.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/fastactionlist/FastActionList.java index 55a5a39b7..755b433be 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/fastactionlist/FastActionList.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/fastactionlist/FastActionList.java @@ -446,27 +446,6 @@ public class FastActionList implements Collection { return count; } - public int getUnreachableActionCountOld(ActionItem jump, ActionItem jumpTarget) { - ActionItem item = firstItem; - if (item == null) { - return 0; - } - - updateReachableFlagsOld(jump, jumpTarget); - jump.reachable = 0; - - int count = 0; - do { - if (item.reachable == 0) { - count++; - } - - item = item.next; - } while (item != firstItem); - - return count; - } - private void clearReachableFlags() { ActionItem item = firstItem; if (item == null) { @@ -554,56 +533,6 @@ public class FastActionList implements Collection { } } - private void updateReachableFlagsOld(ActionItem jump, ActionItem jumpTarget) { - if (firstItem == null) { - return; - } - - clearReachableFlags(); - - firstItem.reachable = 1; - boolean modified = true; - while (modified) { - modified = false; - for (ActionItem item : this) { - Action action = item.action; - if (item.reachable == 1) { - item.reachable = 2; - modified = true; - - if (item == jump) { - if (jumpTarget.reachable == 0) { - jumpTarget.reachable = 1; - } - - continue; - } - - if (!action.isExit() && !(action instanceof ActionJump) && item.next != null) { - if (item.next.reachable == 0) { - item.next.reachable = 1; - } - } - - ActionItem target = item.getJumpTarget(); - if (target != null) { - if (target.reachable == 0) { - target.reachable = 1; - } - } - - if (action instanceof GraphSourceItemContainer) { - for (ActionItem lastActionItem : item.getContainerLastActions()) { - if (lastActionItem != null && lastActionItem.next != null && lastActionItem.next.reachable == 0) { - lastActionItem.next.reachable = 1; - } - } - } - } - } - } - } - public ActionList updateActions() { List resultList = new ArrayList<>(size); ActionItem item = firstItem;