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

Method delUse

chapter23/src/main/java/com/seaofnodes/simple/node/Node.java:236–239  ·  view source on GitHub ↗
( Node use )

Source from the content-addressed store, hash-verified

234 // Return true if the output list is empty afterward.
235 // Error is 'use' does not exist; ok for 'use' to be null.
236 protected boolean delUse( Node use ) {
237 _outputs.del(_outputs.find(use));
238 return _outputs.isEmpty();
239 }
240
241 // Shortcut for "popping" until n nodes. A "pop" is basically a
242 // setDef(last,null) followed by lowering the nIns() count.

Callers 5

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

Calls 3

delMethod · 0.45
findMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected