From 734956211151b4ee4566732e743f5b86bc87dea1 Mon Sep 17 00:00:00 2001 From: sam gateau Date: Thu, 6 Sep 2018 15:50:31 -0700 Subject: [PATCH] Removing commented code --- libraries/gpu/src/gpu/Batch.h | 5 +---- libraries/graphics/src/graphics/Geometry.cpp | 2 -- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/libraries/gpu/src/gpu/Batch.h b/libraries/gpu/src/gpu/Batch.h index 2bead507b8..bb38379a66 100644 --- a/libraries/gpu/src/gpu/Batch.h +++ b/libraries/gpu/src/gpu/Batch.h @@ -417,10 +417,7 @@ public: } const Data& get(uint32 offset) const { - /* if (offset >= _items.size()) { - static const Data EMPTY; - return EMPTY; - }*/ + assert((offset >= _items.size())); return (_items.data() + offset)->_data; } diff --git a/libraries/graphics/src/graphics/Geometry.cpp b/libraries/graphics/src/graphics/Geometry.cpp index 5a374ae8d0..a983ba07b4 100755 --- a/libraries/graphics/src/graphics/Geometry.cpp +++ b/libraries/graphics/src/graphics/Geometry.cpp @@ -119,7 +119,6 @@ Box Mesh::evalPartBound(int partNum) const { for (;index != endIndex; index++) { // skip primitive restart indices if ((*index) != PRIMITIVE_RESTART_INDEX) { - // box += vertices[(*index)]; box += _vertexBuffer.get(part._baseVertex + (*index)); } } @@ -140,7 +139,6 @@ Box Mesh::evalPartsBound(int partStart, int partEnd) const { for (;index != endIndex; index++) { // skip primitive restart indices if ((*index) != (uint) PRIMITIVE_RESTART_INDEX) { - //partBound += vertices[(*index)]; partBound += _vertexBuffer.get((*part)._baseVertex + (*index)); } }