remove unused LuaReference::BeforeResetAll, LuaReference::AfterResetAll

This commit is contained in:
Glenn Maynard
2006-09-21 00:00:57 +00:00
parent fe06c2e7fb
commit 7d1f669e93
2 changed files with 0 additions and 19 deletions
-16
View File
@@ -132,22 +132,6 @@ void LuaReference::Unregister()
m_iReference = LUA_NOREF; m_iReference = LUA_NOREF;
} }
void LuaReference::BeforeResetAll()
{
if( g_Subscribers.m_pSubscribers == NULL )
return;
FOREACHS( LuaReference*, *g_Subscribers.m_pSubscribers, p )
(*p)->BeforeReset();
}
void LuaReference::AfterResetAll()
{
if( g_Subscribers.m_pSubscribers == NULL )
return;
FOREACHS( LuaReference*, *g_Subscribers.m_pSubscribers, p )
(*p)->ReRegister();
}
void LuaReference::ReRegister() void LuaReference::ReRegister()
{ {
/* When this is called, the Lua state has been wiped. Don't try to unregister our /* When this is called, the Lua state has been wiped. Don't try to unregister our
-3
View File
@@ -35,9 +35,6 @@ public:
/* Return the referenced type, or LUA_TNONE if not set. */ /* Return the referenced type, or LUA_TNONE if not set. */
int GetLuaType() const; int GetLuaType() const;
static void BeforeResetAll(); // call this before resetting Lua
static void AfterResetAll(); // call this after resetting Lua
protected: protected:
/* If this object needs to store state to recreate itself, overload this. */ /* If this object needs to store state to recreate itself, overload this. */
virtual void BeforeReset() { } virtual void BeforeReset() { }