1
0
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:
Adam
2013-02-14 20:57:40 -05:00
parent f0875c5d85
commit 391f2822c8
5 changed files with 16 additions and 21 deletions
+2 -10
View File
@@ -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 */