# HG changeset patch # User Thomas Wuerthinger # Date 1359650725 -3600 # Node ID 4b746e9da3b3d8d850d629f89de8a7ed7653a762 # Parent 5f0876b77ca8ae4bcdc1bccbcc51ad46baddbddf Remove commented out code. diff -r 5f0876b77ca8 -r 4b746e9da3b3 graal/com.oracle.graal.graph/src/com/oracle/graal/graph/Node.java --- a/graal/com.oracle.graal.graph/src/com/oracle/graal/graph/Node.java Thu Jan 31 17:33:27 2013 +0100 +++ b/graal/com.oracle.graal.graph/src/com/oracle/graal/graph/Node.java Thu Jan 31 17:45:25 2013 +0100 @@ -241,11 +241,9 @@ return nodeClass; } - // TODO (thomaswue): Do not allow to replace with null. private boolean checkReplaceWith(Node other) { assert assertFalse(other == this, "cannot replace a node with itself"); assert assertFalse(isDeleted(), "cannot replace deleted node"); - // assert assertTrue(other != null, "cannot replace with null node"); assert assertTrue(other == null || !other.isDeleted(), "cannot replace with deleted node %s", other); assert assertTrue(other == null || other.graph() == graph, "cannot replace with node in different graph: %s", other == null ? null : other.graph()); return true;