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

Method delUse

chapter21/src/main/java/com/seaofnodes/simple/node/Node.java:234–237  ·  view source on GitHub ↗
( Node use )

Source from the content-addressed store, hash-verified

232 // Return true if the output list is empty afterward.
233 // Error is 'use' does not exist; ok for 'use' to be null.
234 protected boolean delUse( Node use ) {
235 _outputs.del(_outputs.find(use));
236 return _outputs.isEmpty();
237 }
238
239 // Shortcut for "popping" until n nodes. A "pop" is basically a
240 // 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