remove ugly RunAtExpressionS
This commit is contained in:
@@ -547,20 +547,6 @@ void LuaHelpers::RunExpressionS( const RString &str, RString &sOut )
|
||||
LUA->Release( L );
|
||||
}
|
||||
|
||||
bool LuaHelpers::RunAtExpressionS( RString &sStr )
|
||||
{
|
||||
if( sStr.size() == 0 || sStr[0] != '@' )
|
||||
return false;
|
||||
|
||||
/* Erase "@". */
|
||||
sStr.erase( 0, 1 );
|
||||
|
||||
RString sOut;
|
||||
LuaHelpers::RunExpressionS( sStr, sOut );
|
||||
sStr = sOut;
|
||||
return true;
|
||||
}
|
||||
|
||||
void LuaHelpers::ParseCommandList( Lua *L, const RString &sCommands, const RString &sName )
|
||||
{
|
||||
RString sLuaFunction;
|
||||
|
||||
@@ -78,9 +78,6 @@ namespace LuaHelpers
|
||||
/* Run an expression in the global environment, returning the given type. */
|
||||
void RunExpressionS( const RString &str, RString &sOut );
|
||||
|
||||
/* If sStr begins with @, evaluate the rest as an expression and store the result over sStr. */
|
||||
bool RunAtExpressionS( RString &sStr );
|
||||
|
||||
void ParseCommandList( lua_State *L, const RString &sCommands, const RString &sName );
|
||||
|
||||
XNode *GetLuaInformation();
|
||||
|
||||
Reference in New Issue
Block a user