]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_spanningtree Utils: Remove unused functions
authorattilamolnar <attilamolnar@hush.com>
Wed, 4 Jul 2012 20:50:45 +0000 (22:50 +0200)
committerattilamolnar <attilamolnar@hush.com>
Tue, 2 Oct 2012 22:30:02 +0000 (00:30 +0200)
src/modules/m_spanningtree/utils.cpp
src/modules/m_spanningtree/utils.h

index 11fdeb6cc62e8be612cf3cab78fdd547036d09ec..8b078220c97bafb37ef97b4a2519e060e14b4048 100644 (file)
@@ -130,12 +130,6 @@ TreeServer* SpanningTreeUtilities::FindServerID(const std::string &id)
                return NULL;
 }
 
-/* A convenient wrapper that returns true if a server exists */
-bool SpanningTreeUtilities::IsServer(const std::string &ServerName)
-{
-       return (FindServer(ServerName) != NULL);
-}
-
 SpanningTreeUtilities::SpanningTreeUtilities(ModuleSpanningTree* C) : Creator(C)
 {
        ServerInstance->Logs->Log("m_spanningtree",DEBUG,"***** Using SID for hash: %s *****", ServerInstance->Config->GetSID().c_str());
@@ -208,23 +202,6 @@ void SpanningTreeUtilities::GetListOfServersForChannel(Channel* c, TreeServerLis
        return;
 }
 
-bool SpanningTreeUtilities::DoOneToAllButSenderRaw(const std::string &data, const std::string &omit, const std::string &prefix, const irc::string &command, const parameterlist &params)
-{
-       TreeServer* omitroute = this->BestRouteTo(omit);
-       unsigned int items =this->TreeRoot->ChildCount();
-       for (unsigned int x = 0; x < items; x++)
-       {
-               TreeServer* Route = this->TreeRoot->GetChild(x);
-               if ((Route) && (Route->GetSocket()) && (Route->GetName() != omit) && (omitroute != Route))
-               {
-                       TreeSocket* Sock = Route->GetSocket();
-                       if (Sock)
-                               Sock->WriteLine(data);
-               }
-       }
-       return true;
-}
-
 bool SpanningTreeUtilities::DoOneToAllButSender(const std::string &prefix, const std::string &command, const parameterlist &params, std::string omit)
 {
        TreeServer* omitroute = this->BestRouteTo(omit);
index a82b9eb911fa3132f94876f5f241f697068091f9..ace33ad3ba4681d889f34a5fa627d51b2c9541e9 100644 (file)
@@ -151,10 +151,6 @@ class SpanningTreeUtilities : public classbase
         */
        bool DoOneToMany(const char* prefix, const char* command, const parameterlist &params);
 
-       /** Send a message from this server to all others, without doing any processing on the command (e.g. send it as-is with colons and all)
-        */
-       bool DoOneToAllButSenderRaw(const std::string &data, const std::string &omit, const std::string &prefix, const irc::string &command, const parameterlist &params);
-
        /** Read the spanningtree module's tags from the config file
         */
        void ReadConfiguration();
@@ -183,10 +179,6 @@ class SpanningTreeUtilities : public classbase
         */
        TreeServer* FindServerMask(const std::string &ServerName);
 
-       /** Returns true if this is a server name we recognise
-        */
-       bool IsServer(const std::string &ServerName);
-
        /** Find a link tag from a server name
         */
        Link* FindLink(const std::string& name);