remove unused
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user