From e7b39ae1193648687ea3ca9d868acd116c7d99f4 Mon Sep 17 00:00:00 2001 From: Andrew Meadows Date: Fri, 5 Sep 2014 16:42:24 -0700 Subject: [PATCH] removed unused variable --- libraries/entities/src/EntityTreeElement.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libraries/entities/src/EntityTreeElement.cpp b/libraries/entities/src/EntityTreeElement.cpp index e1aa9b33e1..8f223abf7e 100644 --- a/libraries/entities/src/EntityTreeElement.cpp +++ b/libraries/entities/src/EntityTreeElement.cpp @@ -723,7 +723,6 @@ int EntityTreeElement::readElementDataFromBuffer(const unsigned char* data, int int bytesForThisEntity = 0; EntityItemID entityItemID; EntityItem* entityItem = NULL; - bool newEntity = false; // Old model files don't have UUIDs in them. So we don't want to try to read those IDs from the stream. // Since this can only happen on loading an old file, we can safely treat these as new entity cases, @@ -768,7 +767,6 @@ int EntityTreeElement::readElementDataFromBuffer(const unsigned char* data, int addEntityItem(entityItem); // add this new entity to this elements entities entityItemID = entityItem->getEntityItemID(); _myTree->setContainingElement(entityItemID, this); - newEntity = true; EntityItem::SimulationState newState = entityItem->getSimulationState(); _myTree->changeEntityState(entityItem, EntityItem::Static, newState); } @@ -826,4 +824,4 @@ void EntityTreeElement::debugDump() { entity->debugDump(); } } - \ No newline at end of file +