removed useless code generating warnings
This commit is contained in:
parent
18c30b9d17
commit
0207d2b0c5
|
@ -309,7 +309,7 @@ namespace vcg
|
|||
INT_ATT_NAMES(unsigned int att)
|
||||
: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");
|
||||
else
|
||||
_val = att;
|
||||
|
|
|
@ -1921,7 +1921,7 @@ namespace vcg
|
|||
void setBufferPointer( INT_ATT_NAMES boname) const
|
||||
{
|
||||
unsigned int ii = boname;
|
||||
if ((ii < INT_ATT_NAMES::ATT_VERTPOSITION) || (ii >= INT_ATT_NAMES::enumArity()))
|
||||
if (ii >= INT_ATT_NAMES::enumArity())
|
||||
return;
|
||||
GLBufferObject* cbo = _bo[ii];
|
||||
if (cbo == NULL)
|
||||
|
@ -1959,7 +1959,7 @@ namespace vcg
|
|||
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;
|
||||
|
||||
switch(boname)
|
||||
|
|
Loading…
Reference in New Issue