MCPcopy Create free account
hub / github.com/axmolengine/axmol / detachChild

Method detachChild

core/2d/Node.cpp:1174–1184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1172}
1173
1174void Node::detachChild(Node* child, ssize_t childIndex, bool cleanup)
1175{
1176 if (_childrenIndexer)
1177 {
1178 _childrenIndexer->erase(child->_tag);
1179 _childrenIndexer->erase(child->_hashOfName);
1180 }
1181
1182 resetChild(child, cleanup);
1183 _children.erase(childIndex);
1184}
1185
1186// helper used by reorderChild & add
1187void Node::insertChild(Node* child, int z)

Callers 1

removeChildMethod · 0.95

Calls 1

eraseMethod · 0.45

Tested by

no test coverage detected