Remove unnecessary debugging code

This commit is contained in:
Alexey Andreev 2015-06-20 18:41:23 +03:00
parent 4e5e4af3e6
commit e59351723a

View File

@ -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);