diff --git a/stepmania/src/LuaManager.cpp b/stepmania/src/LuaManager.cpp index 1abc4a4c38..38c06a75db 100644 --- a/stepmania/src/LuaManager.cpp +++ b/stepmania/src/LuaManager.cpp @@ -369,21 +369,6 @@ bool LuaManager::RunAtExpressionS( CString &sStr ) return true; } -float LuaManager::RunAtExpressionF( const CString &_sStr ) -{ - if( _sStr.size() == 0 || _sStr[0] != '@' ) - return 0; - - CString sStr = _sStr; - - /* Erase "@". */ - sStr.erase( 0, 1 ); - - CString sOut; - RunExpressionS( sStr, sOut ); - return strtof( sOut, NULL ); -} - void LuaManager::Fail( const CString &err ) { lua_pushstring( L, err ); diff --git a/stepmania/src/LuaManager.h b/stepmania/src/LuaManager.h index 062380f6a0..44f7812dc0 100644 --- a/stepmania/src/LuaManager.h +++ b/stepmania/src/LuaManager.h @@ -77,7 +77,6 @@ public: /* If sStr begins with @, evaluate the rest as an expression and store the result over sStr. */ bool RunAtExpressionS( CString &sStr ); - float RunAtExpressionF( const CString &sStr ); void Fail( const CString &err );