]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Remove unused ProtocolInterface::SendTopic()
authorAttila Molnar <attilamolnar@hush.com>
Wed, 30 Mar 2016 10:40:12 +0000 (12:40 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Wed, 30 Mar 2016 10:40:12 +0000 (12:40 +0200)
include/protocol.h
src/modules/m_spanningtree/protocolinterface.cpp
src/modules/m_spanningtree/protocolinterface.h

index b3f209a8266dd6d493a47122075fcb0209db4b35..2e512f11ae5a6f5906068eeff34405bebb2a0571 100644 (file)
@@ -98,12 +98,6 @@ class CoreExport ProtocolInterface
         */
        virtual void SendMetaData(const std::string& key, const std::string& data) { }
 
-       /** Send a topic change for a channel
-        * @param channel The channel to change the topic for.
-        * @param topic The new topic to use for the channel.
-        */
-       virtual void SendTopic(Channel* channel, std::string &topic) { }
-
        /** Send a notice to users with a given snomask.
         * @param snomask The snomask required for the message to be sent.
         * @param text The message to send.
index 957638517bd083e994f5cfe8c610c805f9aaafb3..be95845a7e2302d46d63876252cc11aef09b28e1 100644 (file)
@@ -102,11 +102,6 @@ void SpanningTreeProtocolInterface::Server::SendMetaData(const std::string& key,
        sock->WriteLine(CommandMetadata::Builder(key, data));
 }
 
-void SpanningTreeProtocolInterface::SendTopic(Channel* channel, std::string &topic)
-{
-       CommandFTopic::Builder(ServerInstance->FakeClient, channel).Broadcast();
-}
-
 void SpanningTreeProtocolInterface::SendSNONotice(char snomask, const std::string &text)
 {
        CmdBuilder("SNONOTICE").push(snomask).push_last(text).Broadcast();
index c86ca007c07a886461144797ce56268b35251311..e7fed54752d60671b64ff24991305d49dbca78f8 100644 (file)
@@ -36,7 +36,6 @@ class SpanningTreeProtocolInterface : public ProtocolInterface
        void SendMetaData(User* user, const std::string& key, const std::string& data) CXX11_OVERRIDE;
        void SendMetaData(Channel* chan, const std::string& key, const std::string& data) CXX11_OVERRIDE;
        void SendMetaData(const std::string& key, const std::string& data) CXX11_OVERRIDE;
-       void SendTopic(Channel* channel, std::string &topic);
        void SendSNONotice(char snomask, const std::string& text) CXX11_OVERRIDE;
        void SendMessage(Channel* target, char status, const std::string& text, MessageType msgtype);
        void SendMessage(User* target, const std::string& text, MessageType msgtype);