From 47d07b3cf22237a0b0aa4d66aef29e8915375df1 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 13 Oct 2006 08:24:43 +0000 Subject: [PATCH] remove unused --- stepmania/src/LuaReference.cpp | 16 ---------------- stepmania/src/LuaReference.h | 7 ------- 2 files changed, 23 deletions(-) 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