From b9006ce3cba742ca2a22d601ba1a63a47b0402c9 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Wed, 3 Sep 2014 14:28:13 +0200 Subject: Remove ProtocolInterface::SendMode() --- src/mode.cpp | 3 --- src/modules/m_spanningtree/protocolinterface.cpp | 4 ---- src/modules/m_spanningtree/protocolinterface.h | 1 - 3 files changed, 8 deletions(-) (limited to 'src') diff --git a/src/mode.cpp b/src/mode.cpp index 66ce313f4..8081188f5 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -495,9 +495,6 @@ void ModeParser::Process(const std::vector& parameters, User* user, LastParse.append(output_mode); LastParse.append(output_parameters); - if (!(flags & MODE_LOCALONLY)) - ServerInstance->PI->SendMode(user, targetuser, targetchannel, LastParseParams, LastParseTranslate); - if (targetchannel) targetchannel->WriteChannel(user, "MODE " + LastParse); else diff --git a/src/modules/m_spanningtree/protocolinterface.cpp b/src/modules/m_spanningtree/protocolinterface.cpp index 3ad75a430..786f8b74b 100644 --- a/src/modules/m_spanningtree/protocolinterface.cpp +++ b/src/modules/m_spanningtree/protocolinterface.cpp @@ -107,10 +107,6 @@ void SpanningTreeProtocolInterface::SendTopic(Channel* channel, std::string &top CommandFTopic::Builder(ServerInstance->FakeClient, channel).Broadcast(); } -void SpanningTreeProtocolInterface::SendMode(User* source, User* u, Channel* c, const std::vector& modedata, const std::vector& translate) -{ -} - 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 97648f4b4..45742e9ea 100644 --- a/src/modules/m_spanningtree/protocolinterface.h +++ b/src/modules/m_spanningtree/protocolinterface.h @@ -37,7 +37,6 @@ class SpanningTreeProtocolInterface : public ProtocolInterface 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 SendMode(User* source, User* usertarget, Channel* chantarget, const parameterlist& modedata, const std::vector& types); void SendSNONotice(char snomask, const std::string& text) CXX11_OVERRIDE; void PushToClient(User* target, const std::string &rawline); void SendMessage(Channel* target, char status, const std::string& text, MessageType msgtype); -- cgit v1.2.3