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

Method delUse

chapter04/src/main/java/com/seaofnodes/simple/node/Node.java:176–179  ·  view source on GitHub ↗
( Node use )

Source from the content-addressed store, hash-verified

174 // Return true if the output list is empty afterward.
175 // Error is 'use' does not exist; ok for 'use' to be null.
176 protected boolean delUse( Node use ) {
177 Utils.del(_outputs, Utils.find(_outputs, use));
178 return _outputs.isEmpty();
179 }
180
181 // Shortcut for "popping" n nodes. A "pop" is basically a
182 // setDef(last,null) followed by lowering the nIns() count.

Callers 3

setDefMethod · 0.95
popNMethod · 0.95
unkeepMethod · 0.95

Calls 3

delMethod · 0.95
findMethod · 0.95
isEmptyMethod · 0.45

Tested by

no test coverage detected