From e47d9ea21fb10d927ca6bc4148881c242f24b286 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Tue, 21 May 2013 11:44:48 -0700 Subject: [PATCH] cleanup code --- libraries/voxels/src/VoxelTree.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libraries/voxels/src/VoxelTree.cpp b/libraries/voxels/src/VoxelTree.cpp index ea77d0175f..5a8ed2368a 100644 --- a/libraries/voxels/src/VoxelTree.cpp +++ b/libraries/voxels/src/VoxelTree.cpp @@ -99,15 +99,7 @@ VoxelNode * VoxelTree::nodeForOctalCode(VoxelNode *ancestorNode, unsigned char * // returns the node created! VoxelNode* VoxelTree::createMissingNode(VoxelNode* lastParentNode, unsigned char* codeToReach) { - int indexOfNewChild = branchIndexWithDescendant(lastParentNode->getOctalCode(), codeToReach); - -/**** - // we could be coming down a branch that was already created, so don't stomp on it. - if (!lastParentNode->getChildAtIndex(indexOfNewChild)) { - lastParentNode->addChildAtIndex(indexOfNewChild); - } -***/ if (lastParentNode->isLeaf() && lastParentNode->isColored()) { // for colored leaves, we must add *all* the children for (int i = 0; i < NUMBER_OF_CHILDREN; i++) {