MCPcopy Create free account
hub / github.com/cogentcore/core / Destroy

Method Destroy

tree/nodebase.go:395–401  ·  view source on GitHub ↗

Destroy recursively deletes and destroys the node, all of its children, and all of its children's children, etc.

()

Source from the content-addressed store, hash-verified

393// Destroy recursively deletes and destroys the node, all of its children,
394// and all of its children's children, etc.
395func (n *NodeBase) Destroy() {
396 if n.This == nil { // already destroyed
397 return
398 }
399 n.DeleteChildren()
400 n.This = nil
401}
402
403// Property Storage:
404

Callers

nothing calls this directly

Calls 1

DeleteChildrenMethod · 0.95

Tested by

no test coverage detected