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 )