remove commented out cruft

This commit is contained in:
Andrew Meadows 2014-12-29 10:41:19 -08:00
parent 9b7e50858a
commit bef14a46ac
2 changed files with 0 additions and 19 deletions

View file

@ -679,23 +679,6 @@ EntityItem* EntityTreeElement::getEntityWithEntityItemID(const EntityItemID& id)
return foundEntity;
}
/* TODO: probably move the cleanupEntities() stuff into EntityTree
void EntityTreeElement::cleanupEntities(PhysicsEngine* physicsEngine) {
uint16_t numberOfEntities = _entityItems->size();
for (uint16_t i = 0; i < numberOfEntities; i++) {
EntityItem* entity = (*_entityItems)[i];
EntityMotionState* motionState = entity->getMotionState();
if (motionState) {
assert(physicsEngine);
physicsEngine->removeObject(static_cast<CustomMotionState*>(motionState));
entity->destroyMotionState();
}
delete entity;
}
_entityItems->clear();
}
*/
bool EntityTreeElement::removeEntityWithEntityItemID(const EntityItemID& id) {
bool foundEntity = false;
uint16_t numberOfEntities = _entityItems->size();

View file

@ -175,8 +175,6 @@ public:
EntityItem* getEntityWithEntityItemID(const EntityItemID& id);
// TODO: probably move the cleanupEntities() stuff into EntityTree
//void cleanupEntities(PhysicsEngine* physicsEngine);
bool removeEntityWithEntityItemID(const EntityItemID& id);
bool removeEntityItem(EntityItem* entity);