mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 17:53:32 +02:00
remove commented out cruft
This commit is contained in:
parent
9b7e50858a
commit
bef14a46ac
2 changed files with 0 additions and 19 deletions
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue