removeFromList

fun Node.removeFromList(targetNode: Node)

Looks for targetNode in the lists of nodes in this node. When found, it is removed. When not found, an IllegalStateException is thrown.


Removes this node from the parent if it is in a MutableList. For this to work, Node.assignParents must have been called.