diff options
-rw-r--r-- | src/modules/m_spanningtree/treeserver.cpp | 19 | ||||
-rw-r--r-- | src/modules/m_spanningtree/treeserver.h | 6 |
2 files changed, 0 insertions, 25 deletions
diff --git a/src/modules/m_spanningtree/treeserver.cpp b/src/modules/m_spanningtree/treeserver.cpp index ef0fe4472..d758785d4 100644 --- a/src/modules/m_spanningtree/treeserver.cpp +++ b/src/modules/m_spanningtree/treeserver.cpp @@ -330,25 +330,6 @@ bool TreeServer::DelChild(TreeServer* Child) return false; } -/** Removes child nodes of this node, and of that node, etc etc. - * This is used during netsplits to automatically tidy up the - * server tree. It is slow, we don't use it for much else. - */ -void TreeServer::Tidy() -{ - while (1) - { - std::vector<TreeServer*>::iterator a = Children.begin(); - if (a == Children.end()) - return; - TreeServer* s = *a; - s->Tidy(); - s->cull(); - Children.erase(a); - delete s; - } -} - CullResult TreeServer::cull() { // Recursively cull all servers that are under us in the tree diff --git a/src/modules/m_spanningtree/treeserver.h b/src/modules/m_spanningtree/treeserver.h index 88b43d182..69305a240 100644 --- a/src/modules/m_spanningtree/treeserver.h +++ b/src/modules/m_spanningtree/treeserver.h @@ -203,12 +203,6 @@ class TreeServer : public Server */ bool DelChild(TreeServer* Child); - /** Removes child nodes of this node, and of that node, etc etc. - * This is used during netsplits to automatically tidy up the - * server tree. It is slow, we don't use it for much else. - */ - void Tidy(); - /** Get server ID */ const std::string& GetID(); |