summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-07-28 14:35:20 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-07-28 14:35:20 +0200
commit503ba19ec18ded4d1b373c799b795e39262088e3 (patch)
treee682d7755bc0026f68166243b8ec2495fe5b749e /src/modules/m_spanningtree
parent8a7ed312cfcd47a39ac07b146b4aaf5f9ca1c0e2 (diff)
m_spanningtree Remove now unused TreeServer::Tidy()
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/treeserver.cpp19
-rw-r--r--src/modules/m_spanningtree/treeserver.h6
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();