The OpenD Programming Language

Element.removeFromTree

shorthand for this.parentNode.removeChild(this) with parentNode null check if the element already isn't in a tree, it does nothing.

class Element
removeFromTree
()
out (var) { assert (this.parentNode is null); assert (var is this); }

Meta