MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / delUse

Method delUse

chapter18/src/main/java/com/seaofnodes/simple/node/Node.java:220–223  ·  view source on GitHub ↗
( Node use )

Source from the content-addressed store, hash-verified

218 // Return true if the output list is empty afterward.
219 // Error is 'use' does not exist; ok for 'use' to be null.
220 protected boolean delUse( Node use ) {
221 _outputs.del(_outputs.find(use));
222 return _outputs.isEmpty();
223 }
224
225 // Shortcut for "popping" until n nodes. A "pop" is basically a
226 // setDef(last,null) followed by lowering the nIns() count.

Callers 5

setDefMethod · 0.95
delDefMethod · 0.95
popUntilMethod · 0.95
killMethod · 0.95
unkeepMethod · 0.95

Calls 3

delMethod · 0.45
findMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected