mirror of
https://github.com/anope/anope.git
synced 2026-06-27 07:46:37 +02:00
This Serialize::Destroy method isn't actually needed anymore. Fixes weirdness from a few Serializable items we had on the stack. Added a comment about why operator< in Reference fails.
This commit is contained in:
+2
-10
@@ -67,6 +67,8 @@ Serializable::Serializable(const Serializable &other) : last_commit(NULL), last_
|
||||
|
||||
Serializable::~Serializable()
|
||||
{
|
||||
FOREACH_MOD(I_OnSerializableDestruct, OnSerializableDestruct(this));
|
||||
|
||||
SerializableItems->erase(this->s_iter);
|
||||
delete last_commit;
|
||||
}
|
||||
@@ -76,16 +78,6 @@ Serializable &Serializable::operator=(const Serializable &)
|
||||
return *this;
|
||||
}
|
||||
|
||||
void Serializable::Destroy()
|
||||
{
|
||||
if (!this)
|
||||
return;
|
||||
|
||||
FOREACH_MOD(I_OnSerializableDestruct, OnSerializableDestruct(this));
|
||||
|
||||
delete this;
|
||||
}
|
||||
|
||||
void Serializable::QueueUpdate()
|
||||
{
|
||||
/* Schedule updater */
|
||||
|
||||
Reference in New Issue
Block a user