diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-03-29 12:46:12 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-03-29 12:46:12 +0200 |
commit | 610a74ecea1d4b70f0c7eb3de04b8f7ff27e1fed (patch) | |
tree | 50cf5b71ccdb03adf51369bd76ea1ede3204c2d4 | |
parent | 6c5ac89f35d49833d7075c1449b2d82ddf7926dc (diff) |
m_spanningtree Remove unused SpanningTreeUtilities::BestRouteTo()
-rw-r--r-- | src/modules/m_spanningtree/utils.cpp | 26 | ||||
-rw-r--r-- | src/modules/m_spanningtree/utils.h | 4 |
2 files changed, 0 insertions, 30 deletions
diff --git a/src/modules/m_spanningtree/utils.cpp b/src/modules/m_spanningtree/utils.cpp index 71855305e..05b77bb62 100644 --- a/src/modules/m_spanningtree/utils.cpp +++ b/src/modules/m_spanningtree/utils.cpp @@ -67,32 +67,6 @@ TreeServer* SpanningTreeUtilities::FindServer(const std::string &ServerName) } } -/** Returns the locally connected server we must route a - * message through to reach server 'ServerName'. This - * only applies to one-to-one and not one-to-many routing. - * See the comments for the constructor of TreeServer - * for more details. - */ -TreeServer* SpanningTreeUtilities::BestRouteTo(const std::string &ServerName) -{ - TreeServer* Found = FindServer(ServerName); - if (Found) - { - return Found->GetRoute(); - } - else - { - // Cheat a bit. This allows for (better) working versions of routing commands with nick based prefixes, without hassle - User *u = ServerInstance->FindNick(ServerName); - if (u) - { - return TreeServer::Get(u)->GetRoute(); - } - - return NULL; - } -} - /** Find the first server matching a given glob mask. * We iterate over the list and match each one until we get a hit. */ diff --git a/src/modules/m_spanningtree/utils.h b/src/modules/m_spanningtree/utils.h index 3c54e93ac..6d0d094e7 100644 --- a/src/modules/m_spanningtree/utils.h +++ b/src/modules/m_spanningtree/utils.h @@ -148,10 +148,6 @@ class SpanningTreeUtilities : public classbase */ TreeServer* FindServerID(const std::string &id); - /** Find a route to a server by name - */ - TreeServer* BestRouteTo(const std::string &ServerName); - /** Find a server by glob mask */ TreeServer* FindServerMask(const std::string &ServerName); |