| 584 | } |
| 585 | |
| 586 | void Node::removeFromParent(bool cleanup) { |
| 587 | if (_parent) { |
| 588 | _parent->removeChild(this, cleanup); |
| 589 | } else if (cleanup) { |
| 590 | this->cleanup(); |
| 591 | } |
| 592 | } |
| 593 | |
| 594 | void Node::moveToParent(Node* parent) { |
| 595 | AssertIf(parent == nullptr, "can not move node to an invalid parent (nullptr)."); |
no test coverage detected