diff --git a/stepmania/src/LuaManager.cpp b/stepmania/src/LuaManager.cpp index f8af0e84d5..c4c1b742dd 100644 --- a/stepmania/src/LuaManager.cpp +++ b/stepmania/src/LuaManager.cpp @@ -125,17 +125,6 @@ void LuaManager::ReadArrayFromTableB( vector &aOut, lua_State *L ) } } -bool LuaManager::GetStack( int pos, int &out ) -{ - if( pos < 0 ) - pos = lua_gettop(L) - pos - 1; - if( pos < 1 ) - return false; - - out = (int) lua_tonumber( L, pos ); - return true; -} - void LuaManager::SetGlobal( const CString &sName ) { lua_setglobal( L, sName ); diff --git a/stepmania/src/LuaManager.h b/stepmania/src/LuaManager.h index 157cdb62e5..91a54b72e4 100644 --- a/stepmania/src/LuaManager.h +++ b/stepmania/src/LuaManager.h @@ -86,7 +86,6 @@ public: void SetGlobal( const CString &sName, const CString &val ); void UnsetGlobal( const CString &sName ); - bool GetStack( int pos, int &out ); void SetGlobal( const CString &sName ); /* Create a Lua array (a table with indices starting at 1) of the given vector,