From e59351723afb5631005b8b9d267b6c71d3c27293 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Sat, 20 Jun 2015 18:41:23 +0300 Subject: [PATCH] Remove unnecessary debugging code --- .../src/main/java/org/teavm/model/BasicBlock.java | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/teavm-core/src/main/java/org/teavm/model/BasicBlock.java b/teavm-core/src/main/java/org/teavm/model/BasicBlock.java index 81c911488..737f7963c 100644 --- a/teavm-core/src/main/java/org/teavm/model/BasicBlock.java +++ b/teavm-core/src/main/java/org/teavm/model/BasicBlock.java @@ -16,7 +16,6 @@ package org.teavm.model; import java.util.*; -import org.teavm.model.instructions.AssignInstruction; import org.teavm.model.instructions.InstructionReader; /** @@ -67,19 +66,7 @@ public class BasicBlock implements BasicBlockReader { @Override public void add(int index, Instruction e) { if (e.getBasicBlock() != null) { - if (e instanceof AssignInstruction){ - AssignInstruction ae = (AssignInstruction)e; - System.out.println("Assignment "+ae.getReceiver()+" -> "+ae.getAssignee()); - System.out.println(ae.getReceiver().getDebugNames()); - System.out.println(ae.getReceiver().getIndex()); - System.out.println(ae.getReceiver().getProgram()); - System.out.println(ae.getAssignee().getDebugNames()); - System.out.println(ae.getAssignee().getIndex()); - System.out.println(ae.getAssignee().getProgram()); - - System.out.println(ae.getBasicBlock().getInstructions()); - } - throw new IllegalArgumentException("This instruction is in some basic block "+e+", "+e.getLocation()); + throw new IllegalArgumentException("This instruction is in some basic block"); } e.setBasicBlock(BasicBlock.this); instructions.add(index, e);