diff --git a/trunk/src/com/jpexs/decompiler/flash/SWF.java b/trunk/src/com/jpexs/decompiler/flash/SWF.java index 643effe99..f366e4bbc 100644 --- a/trunk/src/com/jpexs/decompiler/flash/SWF.java +++ b/trunk/src/com/jpexs/decompiler/flash/SWF.java @@ -1059,13 +1059,6 @@ public class SWF { private HashMap getVariables(HashMap variables, List functions, ASMSource src) { HashMap ret = new HashMap(); List actions = src.getActions(version); - /* int ip=0; - for(Action a:actions){ - System.out.println("ip "+ip+" "+a.getASMSource(new ArrayList(), new ArrayList(), new ArrayList(), version, false)); - ip++; - } - if(true) - return ret;*/ actionsMap.put(src, actions); List ss = new ArrayList(); ss.addAll(actions); diff --git a/trunk/src/com/jpexs/decompiler/flash/SWFInputStream.java b/trunk/src/com/jpexs/decompiler/flash/SWFInputStream.java index be80ba375..1546f3755 100644 --- a/trunk/src/com/jpexs/decompiler/flash/SWFInputStream.java +++ b/trunk/src/com/jpexs/decompiler/flash/SWFInputStream.java @@ -724,7 +724,6 @@ public class SWFInputStream extends InputStream { br.append(((Action) ret.get(i)).getASMSource(new ArrayList(), new ArrayList(), cpool.constants, version, false)); br.append("\r\n"); } - Helper.writeFile("test.txt", br.toString().getBytes()); pools = getConstantPool(new ActionGraphSource(ret, version, new HashMap(), new HashMap(), new HashMap()), ip, version); if (pools.size() == 1) { @@ -743,16 +742,6 @@ public class SWFInputStream extends InputStream { ret.add(0, aj); } String s = null; - //Action.setConstantPool(ret, cpool); - - /* try { - s = Highlighting.stripHilights(Action.actionsToString(address,ret, null, version, false,containerSWFOffset)); - //System.out.println("PARSE:"+s); - Helper.writeFile("t.txt", s.getBytes()); - ret = ASMParser.parse(address,containerSWFOffset,false, new ByteArrayInputStream(s.getBytes()), SWF.DEFAULT_VERSION); - } catch (ParseException ex) { - Logger.getLogger(SWFInputStream.class.getName()).log(Level.SEVERE, "parsing error", ex); - }*/ List reta = new ArrayList(); for (Object o : ret) { if (o instanceof Action) { diff --git a/trunk/src/com/jpexs/decompiler/flash/action/Action.java b/trunk/src/com/jpexs/decompiler/flash/action/Action.java index da5cc1399..917f640b6 100644 --- a/trunk/src/com/jpexs/decompiler/flash/action/Action.java +++ b/trunk/src/com/jpexs/decompiler/flash/action/Action.java @@ -765,7 +765,6 @@ public class Action implements GraphSourceItem { continue; } - //System.out.println(" ip "+ip+" "+action); //return in for..in if ((action instanceof ActionPush) && (((ActionPush) action).values.size() == 1) && (((ActionPush) action).values.get(0) instanceof Null)) { if (ip + 3 <= end) { @@ -1158,7 +1157,6 @@ public class Action implements GraphSourceItem { ret = ASMParser.parse(address, swfPos, true, new ByteArrayInputStream(s.getBytes()), SWF.DEFAULT_VERSION); } catch (Exception ex) { Logger.getLogger(SWFInputStream.class.getName()).log(Level.SEVERE, "parsing error", ex); - Helper.writeFile("as2.txt", s.getBytes()); } return ret; } diff --git a/trunk/src/com/jpexs/decompiler/flash/action/gui/ActionPanel.java b/trunk/src/com/jpexs/decompiler/flash/action/gui/ActionPanel.java index 4302cf8fb..b0767a63c 100644 --- a/trunk/src/com/jpexs/decompiler/flash/action/gui/ActionPanel.java +++ b/trunk/src/com/jpexs/decompiler/flash/action/gui/ActionPanel.java @@ -316,7 +316,6 @@ public class ActionPanel extends JPanel implements ActionListener { setHex(hexButton.isSelected()); } else if (e.getActionCommand().equals("SAVEACTION")) { try { - Helper.writeFile("as.txt", editor.getText().getBytes()); src.setActions(ASMParser.parse(0, src.getPos(), true, new ByteArrayInputStream(editor.getText().getBytes()), SWF.DEFAULT_VERSION), SWF.DEFAULT_VERSION); setSource(this.src); JOptionPane.showMessageDialog(this, "Code successfully saved"); diff --git a/trunk/src/com/jpexs/decompiler/flash/graph/Graph.java b/trunk/src/com/jpexs/decompiler/flash/graph/Graph.java index d3225ff53..22bbaf0f0 100644 --- a/trunk/src/com/jpexs/decompiler/flash/graph/Graph.java +++ b/trunk/src/com/jpexs/decompiler/flash/graph/Graph.java @@ -1290,9 +1290,6 @@ public class Graph { GraphPart part = ret; while (ip < code.size()) { if (visited2[ip] || ((ip != startip) && (refs.get(ip).size() > 1))) { - if (lastIp == 497) { - System.out.println("dff"); - } part.end = lastIp; GraphPart found = null; for (GraphPart p : allBlocks) {