From 345c94c0438bcc48045c8a259cbd453dfdbf988f Mon Sep 17 00:00:00 2001 From: "Matias N. Goldberg" Date: Fri, 20 Dec 2024 16:31:30 -0300 Subject: [PATCH] Remove unnecessary dead code --- OgreMain/src/OgreScriptTranslator.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/OgreMain/src/OgreScriptTranslator.cpp b/OgreMain/src/OgreScriptTranslator.cpp index 4b19a65eda..73bdfadfaa 100644 --- a/OgreMain/src/OgreScriptTranslator.cpp +++ b/OgreMain/src/OgreScriptTranslator.cpp @@ -8555,17 +8555,6 @@ namespace Ogre{ uint8 shadowMapSupportedLightTypes = 0; - size_t numPasses = 0; - for(AbstractNodeList::iterator i = obj->children.begin(); i != obj->children.end(); ++i) - { - if((*i)->type == ANT_OBJECT) - { - ObjectAbstractNode *nodeObj = reinterpret_cast( i->get() ); - if( !nodeObj->abstract && nodeObj->id == ID_PASS ) - ++numPasses; - } - } - String lightTypeStr; AbstractNodeList::const_iterator namesIt = obj->values.begin(); for( size_t j=0; jvalues.size() + 1; ++j )