From e5c216c8f00afc9aeb649f6dd9d00110f244cd1a Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 23 Oct 2006 20:25:20 +0000 Subject: [PATCH] remove unused (way too many little custom ways of loading Lua scripts) --- stepmania/src/LuaManager.cpp | 26 -------------------------- stepmania/src/LuaManager.h | 2 -- 2 files changed, 28 deletions(-) diff --git a/stepmania/src/LuaManager.cpp b/stepmania/src/LuaManager.cpp index 5a51ac9227..03a6807b4b 100644 --- a/stepmania/src/LuaManager.cpp +++ b/stepmania/src/LuaManager.cpp @@ -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(); diff --git a/stepmania/src/LuaManager.h b/stepmania/src/LuaManager.h index a8fb73b240..34b542424c 100644 --- a/stepmania/src/LuaManager.h +++ b/stepmania/src/LuaManager.h @@ -76,8 +76,6 @@ namespace LuaHelpers void ReadArrayFromTableB( Lua *L, vector &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. */