From 7239c06e5d799b70ebebde05b0767637a40a8ffc Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 16 Jun 2005 05:40:36 +0000 Subject: [PATCH] remove unused RunAtExpressionF --- stepmania/src/LuaManager.cpp | 15 --------------- stepmania/src/LuaManager.h | 1 - 2 files changed, 16 deletions(-) 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 );