From 94529d54e85736ecd566db010b06d07d92521716 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Mon, 6 May 2013 16:16:21 -0700 Subject: [PATCH] some cleanup pre CR --- interface/src/VoxelSystem.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/interface/src/VoxelSystem.cpp b/interface/src/VoxelSystem.cpp index 78698dbdf3..1f5ce93283 100644 --- a/interface/src/VoxelSystem.cpp +++ b/interface/src/VoxelSystem.cpp @@ -591,7 +591,6 @@ void VoxelSystem::falseColorizeDistanceFromView(ViewFrustum* viewFrustum) { // "Remove" voxels from the tree that are not in view. We don't actually delete them, // we remove them from the tree and place them into a holding area for later deletion -int removedCount; bool VoxelSystem::removeOutOfViewOperation(VoxelNode* node, void* extraData) { VoxelSystem* thisVoxelSystem = (VoxelSystem*) extraData; _nodeCount++; @@ -600,10 +599,6 @@ bool VoxelSystem::removeOutOfViewOperation(VoxelNode* node, void* extraData) { VoxelNode* childNode = node->getChildAtIndex(i); if (childNode && !childNode->isInView(*thisVoxelSystem->_viewFrustum)) { node->removeChildAtIndex(i); - removedCount++; - - // Note: VoxelNodeBag is more expensive than we need, because it checks octal code matches, - // we really just want a simple bag that checks pointers only, consider switching thisVoxelSystem->_removedVoxels.insert(childNode); } } @@ -623,7 +618,6 @@ void VoxelSystem::removeOutOfView() { PerformanceWarning warn(_renderWarningsOn, "removeOutOfView()"); // would like to include removedCount, _nodeCount, _removedVoxels.count() pthread_mutex_lock(&_voxelCleanupLock); _nodeCount = 0; - removedCount = 0; _tree->recurseTreeWithOperation(removeOutOfViewOperation,(void*)this); pthread_mutex_unlock(&_voxelCleanupLock); }