remove unused RunAtExpressionF
This commit is contained in:
@@ -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 );
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user