remove unused

This commit is contained in:
Glenn Maynard
2006-10-13 08:24:43 +00:00
parent 79e8594047
commit 47d07b3cf2
2 changed files with 0 additions and 23 deletions
-16
View File
@@ -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.
-7
View File
@@ -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