]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_spanningtree Remove now unused TreeServer::Tidy()
authorAttila Molnar <attilamolnar@hush.com>
Mon, 28 Jul 2014 12:35:20 +0000 (14:35 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Mon, 28 Jul 2014 12:35:20 +0000 (14:35 +0200)
src/modules/m_spanningtree/treeserver.cpp
src/modules/m_spanningtree/treeserver.h

index ef0fe4472ffdda0378b9956fde9f83e24e8d66aa..d758785d4b1ea8867e0bbd09c207578d8c0d3575 100644 (file)
@@ -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
index 88b43d1820b54d55d5da71ee2f3d19b805ced0af..69305a2405a3048d3faf0adede9d3fd37fa7d224 100644 (file)
@@ -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();