Remove dead code (Coverity CID 149046)

This commit is contained in:
Cirilo Bernardo 2016-06-03 06:30:47 -04:00 committed by Chris Pavlina
parent 55a44f3cfc
commit dbef1d41c5
1 changed files with 4 additions and 15 deletions

View File

@ -490,22 +490,11 @@ SGNODE* WRL2SHAPE::TranslateToSG( SGNODE* aParent )
if( NULL != appearance )
pApp = appearance->TranslateToSG( pShape );
if( ( NULL != appearance && NULL == pApp ) || NULL == pGeom )
if( NULL != appearance && NULL == pApp )
{
if( pGeom )
{
IFSG_FACESET tmp( false );
tmp.Attach( pGeom );
tmp.Destroy();
}
if( pApp )
{
IFSG_APPEARANCE tmp( false );
tmp.Attach( pApp );
tmp.Destroy();
}
IFSG_FACESET tmp( false );
tmp.Attach( pGeom );
tmp.Destroy();
shNode.Destroy();
return NULL;
}