Removing commented code

This commit is contained in:
sam gateau 2018-09-06 15:50:31 -07:00
parent 5ecbdb50c7
commit 7349562111
2 changed files with 1 additions and 6 deletions

View file

@ -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;
}

View file

@ -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<Vec3>(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<Vec3>((*part)._baseVertex + (*index));
}
}