| 1070 | } |
| 1071 | |
| 1072 | void Node::removeFromParentAndCleanup(bool cleanup) |
| 1073 | { |
| 1074 | if (_parent != nullptr) |
| 1075 | { |
| 1076 | _parent->removeChild(this, cleanup); |
| 1077 | } |
| 1078 | } |
| 1079 | |
| 1080 | /* "remove" logic MUST only be on this method |
| 1081 | * If a class want's to extend the 'removeChild' behavior it only needs |