From 891c17ee7bc681d229facdc6b65e6e54f5d457f5 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Thu, 9 Jul 2015 19:59:47 +0200 Subject: [PATCH] Obj: remove dead code. --- code/ObjFileParser.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/ObjFileParser.cpp b/code/ObjFileParser.cpp index fde5d1510..6f9170e8c 100644 --- a/code/ObjFileParser.cpp +++ b/code/ObjFileParser.cpp @@ -706,13 +706,12 @@ void ObjFileParser::getObjectName() } // ------------------------------------------------------------------- // Creates a new object instance -void ObjFileParser::createObject(const std::string &strObjectName) +void ObjFileParser::createObject(const std::string &objName) { ai_assert( NULL != m_pModel ); - //ai_assert( !strObjectName.empty() ); m_pModel->m_pCurrent = new ObjFile::Object; - m_pModel->m_pCurrent->m_strObjName = strObjectName; + m_pModel->m_pCurrent->m_strObjName = objName; m_pModel->m_Objects.push_back( m_pModel->m_pCurrent ); createMesh();