summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-03-30 12:40:12 +0200
committerAttila Molnar <attilamolnar@hush.com>2016-03-30 12:40:12 +0200
commit932748db6dd2a7225c9f12bc34339fcb2f37c319 (patch)
tree0156cb55c83dacae0c32316f8febc099e539c7a8
parent804d58e2001f04786d2594f046d591b664235642 (diff)
Remove unused ProtocolInterface::SendTopic()
-rw-r--r--include/protocol.h6
-rw-r--r--src/modules/m_spanningtree/protocolinterface.cpp5
-rw-r--r--src/modules/m_spanningtree/protocolinterface.h1
3 files changed, 0 insertions, 12 deletions
diff --git a/include/protocol.h b/include/protocol.h
index b3f209a82..2e512f11a 100644
--- a/include/protocol.h
+++ b/include/protocol.h
@@ -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.
diff --git a/src/modules/m_spanningtree/protocolinterface.cpp b/src/modules/m_spanningtree/protocolinterface.cpp
index 957638517..be95845a7 100644
--- a/src/modules/m_spanningtree/protocolinterface.cpp
+++ b/src/modules/m_spanningtree/protocolinterface.cpp
@@ -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();
diff --git a/src/modules/m_spanningtree/protocolinterface.h b/src/modules/m_spanningtree/protocolinterface.h
index c86ca007c..e7fed5475 100644
--- a/src/modules/m_spanningtree/protocolinterface.h
+++ b/src/modules/m_spanningtree/protocolinterface.h
@@ -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);