| 1111 | } |
| 1112 | |
| 1113 | void Node::removeChildByName(std::string_view name, bool cleanup) |
| 1114 | { |
| 1115 | AXASSERT(!name.empty(), "Invalid name"); |
| 1116 | |
| 1117 | Node* child = this->getChildByName(name); |
| 1118 | |
| 1119 | if (child == nullptr) |
| 1120 | { |
| 1121 | AXLOGD("axmol: removeChildByName(name = {}): child not found!", name); |
| 1122 | } |
| 1123 | else |
| 1124 | { |
| 1125 | this->removeChild(child, cleanup); |
| 1126 | } |
| 1127 | } |
| 1128 | |
| 1129 | void Node::removeAllChildren() |
| 1130 | { |
nothing calls this directly
no test coverage detected