remove unnecessary

This commit is contained in:
Glenn Maynard
2005-06-16 05:46:37 +00:00
parent 7239c06e5d
commit dd138bfbc2
2 changed files with 4 additions and 11 deletions
+4 -9
View File
@@ -57,25 +57,25 @@ const char *ChunkReaderString( lua_State *L, void *ptr, size_t *size )
void LuaManager::SetGlobal( const CString &sName, int val )
{
LuaHelpers::PushStack( val, LUA->L );
SetGlobal( sName );
lua_setglobal( L, sName );
}
void LuaManager::SetGlobal( const CString &sName, bool val )
{
LuaHelpers::PushStack( val, LUA->L );
SetGlobal( sName );
lua_setglobal( L, sName );
}
void LuaManager::SetGlobal( const CString &sName, const CString &val )
{
LuaHelpers::PushStack( val, LUA->L );
SetGlobal( sName );
lua_setglobal( L, sName );
}
void LuaManager::UnsetGlobal( const CString &sName )
{
lua_pushnil( L );
SetGlobal( sName );
lua_setglobal( L, sName );
}
@@ -119,11 +119,6 @@ void LuaHelpers::ReadArrayFromTableB( Lua *L, vector<bool> &aOut )
}
}
void LuaManager::SetGlobal( const CString &sName )
{
lua_setglobal( L, sName );
}
static int LuaPanic( lua_State *L )
{
-2
View File
@@ -85,8 +85,6 @@ public:
void SetGlobal( const CString &sName, const CString &val );
void UnsetGlobal( const CString &sName );
void SetGlobal( const CString &sName );
lua_State *L;
private: