removed useless code generating warnings

This commit is contained in:
Guido Ranzuglia 2016-06-29 15:06:46 +02:00
parent 18c30b9d17
commit 0207d2b0c5
2 changed files with 3 additions and 3 deletions

View File

@ -309,7 +309,7 @@ namespace vcg
INT_ATT_NAMES(unsigned int att) INT_ATT_NAMES(unsigned int att)
:ATT_NAMES() :ATT_NAMES()
{ {
if ((att < INT_ATT_NAMES::ATT_VERTPOSITION) || (att >= INT_ATT_NAMES::enumArity())) if (att >= INT_ATT_NAMES::enumArity())
throw Exception("Out of range value\n"); throw Exception("Out of range value\n");
else else
_val = att; _val = att;

View File

@ -1921,7 +1921,7 @@ namespace vcg
void setBufferPointer( INT_ATT_NAMES boname) const void setBufferPointer( INT_ATT_NAMES boname) const
{ {
unsigned int ii = boname; unsigned int ii = boname;
if ((ii < INT_ATT_NAMES::ATT_VERTPOSITION) || (ii >= INT_ATT_NAMES::enumArity())) if (ii >= INT_ATT_NAMES::enumArity())
return; return;
GLBufferObject* cbo = _bo[ii]; GLBufferObject* cbo = _bo[ii];
if (cbo == NULL) if (cbo == NULL)
@ -1959,7 +1959,7 @@ namespace vcg
void disableClientState( INT_ATT_NAMES boname,const RendAtts& req) const void disableClientState( INT_ATT_NAMES boname,const RendAtts& req) const
{ {
if ((boname < INT_ATT_NAMES::ATT_VERTPOSITION) || (boname >= INT_ATT_NAMES::enumArity())) if (boname >= INT_ATT_NAMES::enumArity())
return; return;
switch(boname) switch(boname)