remove unused LuaReference::BeforeResetAll, LuaReference::AfterResetAll
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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() { }
|
||||||
|
|||||||
Reference in New Issue
Block a user