diff --git a/stepmania/src/LuaReference.cpp b/stepmania/src/LuaReference.cpp index 7e4744dc45..184960e158 100644 --- a/stepmania/src/LuaReference.cpp +++ b/stepmania/src/LuaReference.cpp @@ -199,22 +199,6 @@ void LuaTable::Set( Lua *L, const RString &sKey ) lua_settop( L, iTop-1 ); // remove all of the above } -void LuaTable::Unset( Lua *L, const RString &sKey ) -{ - lua_pushnil( L ); - Set( L, sKey ); -} - -void LuaTable::SetKeyAndValue( Lua *L ) -{ - int iTop = lua_gettop( L ); - this->PushSelf( L ); - lua_pushvalue( L, iTop-1 ); // push the value after the table - lua_pushvalue( L, iTop ); // push the key after the value - lua_settable( L, iTop+1 ); - lua_settop( L, iTop-1 ); // remove all of the above -} - /* * (c) 2005 Glenn Maynard, Chris Danford * All rights reserved. diff --git a/stepmania/src/LuaReference.h b/stepmania/src/LuaReference.h index 27b8bbe390..70f95dc779 100644 --- a/stepmania/src/LuaReference.h +++ b/stepmania/src/LuaReference.h @@ -59,13 +59,6 @@ public: /* Set a key by the given name to a value on the stack, and pop the value * off the stack. */ void Set( Lua *L, const RString &sKey ); - - /* Unset the given key (set it to nil). */ - void Unset( Lua *L, const RString &sKey ); - - /* Set a key on the stack to a value on the stack; push the key first. Pop - * both the key and the value off the stack. */ - void SetKeyAndValue( Lua *L ); }; #endif