remove another specialized "parse and evaluate string"
This commit is contained in:
@@ -523,17 +523,6 @@ bool LuaHelpers::RunExpression( Lua *L, const RString &sExpression, const RStrin
|
||||
return true;
|
||||
}
|
||||
|
||||
void LuaHelpers::RunExpressionS( const RString &str, RString &sOut )
|
||||
{
|
||||
Lua *L = LUA->Get();
|
||||
|
||||
RunExpression( L, str );
|
||||
|
||||
LuaHelpers::Pop( L, sOut );
|
||||
|
||||
LUA->Release( L );
|
||||
}
|
||||
|
||||
void LuaHelpers::ParseCommandList( Lua *L, const RString &sCommands, const RString &sName )
|
||||
{
|
||||
RString sLuaFunction;
|
||||
|
||||
@@ -72,9 +72,6 @@ namespace LuaHelpers
|
||||
/* Read the table at the top of the stack back into a vector. */
|
||||
void ReadArrayFromTableB( Lua *L, vector<bool> &aOut );
|
||||
|
||||
/* Run an expression in the global environment, returning the given type. */
|
||||
void RunExpressionS( const RString &str, RString &sOut );
|
||||
|
||||
void ParseCommandList( lua_State *L, const RString &sCommands, const RString &sName );
|
||||
|
||||
XNode *GetLuaInformation();
|
||||
|
||||
@@ -827,8 +827,12 @@ RString ThemeManager::GetClassFallback( const RString &sClassName )
|
||||
if( !GetMetricRawRecursive(g_pLoadedThemeData->iniMetrics,sClassName,"Fallback",sFallback) )
|
||||
return RString();
|
||||
|
||||
Lua *L = LUA->Get();
|
||||
LuaHelpers::RunExpression( L, sFallback );
|
||||
RString sRet;
|
||||
LuaHelpers::RunExpressionS( sFallback, sRet );
|
||||
LuaHelpers::Pop( L, sRet );
|
||||
LUA->Release( L );
|
||||
|
||||
return sRet;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user