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

Method delUse

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

Source from the content-addressed store, hash-verified

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

Callers 6

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

Calls 3

delMethod · 0.45
findMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected