Remove dead code (Coverity CID 149046)
This commit is contained in:
parent
55a44f3cfc
commit
dbef1d41c5
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue