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

Method delUse

chapter14/src/main/java/com/seaofnodes/simple/node/Node.java:213–216  ·  view source on GitHub ↗
( Node use )

Source from the content-addressed store, hash-verified

211 // Return true if the output list is empty afterward.
212 // Error is 'use' does not exist; ok for 'use' to be null.
213 protected boolean delUse( Node use ) {
214 Utils.del(_outputs, Utils.find(_outputs, use));
215 return _outputs.isEmpty();
216 }
217
218 // Shortcut for "popping" n nodes. A "pop" is basically a
219 // setDef(last,null) followed by lowering the nIns() count.

Callers 5

setDefMethod · 0.95
delDefMethod · 0.95
popNMethod · 0.95
killMethod · 0.95
unkeepMethod · 0.95

Calls 3

delMethod · 0.95
findMethod · 0.95
isEmptyMethod · 0.45

Tested by

no test coverage detected