remove unused (way too many little custom ways of loading Lua scripts)
This commit is contained in:
@@ -536,32 +536,6 @@ bool LuaHelpers::RunExpression( Lua *L, const RString &sExpression, const RStrin
|
||||
return true;
|
||||
}
|
||||
|
||||
bool LuaHelpers::RunExpressionB( const RString &str )
|
||||
{
|
||||
Lua *L = LUA->Get();
|
||||
|
||||
RunExpression( L, str );
|
||||
|
||||
bool result;
|
||||
LuaHelpers::Pop( L, result );
|
||||
|
||||
LUA->Release( L );
|
||||
return result;
|
||||
}
|
||||
|
||||
float LuaHelpers::RunExpressionF( const RString &str )
|
||||
{
|
||||
Lua *L = LUA->Get();
|
||||
|
||||
RunExpression( L, str );
|
||||
|
||||
float result;
|
||||
LuaHelpers::Pop( L, result );
|
||||
|
||||
LUA->Release( L );
|
||||
return result;
|
||||
}
|
||||
|
||||
void LuaHelpers::RunExpressionS( const RString &str, RString &sOut )
|
||||
{
|
||||
Lua *L = LUA->Get();
|
||||
|
||||
@@ -76,8 +76,6 @@ namespace LuaHelpers
|
||||
void ReadArrayFromTableB( Lua *L, vector<bool> &aOut );
|
||||
|
||||
/* Run an expression in the global environment, returning the given type. */
|
||||
bool RunExpressionB( const RString &str );
|
||||
float RunExpressionF( const RString &str );
|
||||
void RunExpressionS( const RString &str, RString &sOut );
|
||||
|
||||
/* If sStr begins with @, evaluate the rest as an expression and store the result over sStr. */
|
||||
|
||||
Reference in New Issue
Block a user