From 898cfbc043ce0586ae32301eeaadb223fae06a05 Mon Sep 17 00:00:00 2001 From: samcake Date: Thu, 11 Feb 2016 14:41:37 -0800 Subject: [PATCH] cleaning a if into an assert --- libraries/render/src/render/Octree.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libraries/render/src/render/Octree.cpp b/libraries/render/src/render/Octree.cpp index 82c8ca604b..6a61c16567 100644 --- a/libraries/render/src/render/Octree.cpp +++ b/libraries/render/src/render/Octree.cpp @@ -113,11 +113,7 @@ Octree::Index Octree::allocateCell(Index parent, const Location& location) { if (_cells[parent].hasChild(location.octant())) { return _cells[parent].child(location.octant()); } - - if (!(_cells[parent].getlocation().child(location.octant()) == location)) { - auto parentLoc = _cells[parent].getlocation(); - assert(false); - } + assert(_cells[parent].getlocation().child(location.octant()) == location); Index newIndex; if (_freeCells.empty()) {