diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-07-28 14:35:20 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-07-28 14:35:20 +0200 |
commit | 503ba19ec18ded4d1b373c799b795e39262088e3 (patch) | |
tree | e682d7755bc0026f68166243b8ec2495fe5b749e /src/modules/m_spanningtree/treeserver.cpp | |
parent | 8a7ed312cfcd47a39ac07b146b4aaf5f9ca1c0e2 (diff) |
m_spanningtree Remove now unused TreeServer::Tidy()
Diffstat (limited to 'src/modules/m_spanningtree/treeserver.cpp')
-rw-r--r-- | src/modules/m_spanningtree/treeserver.cpp | 19 |
1 files changed, 0 insertions, 19 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 |