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() --- include/protocol.h | 9 --------- src/mode.cpp | 3 --- src/modules/m_spanningtree/protocolinterface.cpp | 4 ---- src/modules/m_spanningtree/protocolinterface.h | 1 - 4 files changed, 17 deletions(-) diff --git a/include/protocol.h b/include/protocol.h index 01eb145f1..2b1ffb753 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -104,15 +104,6 @@ class CoreExport ProtocolInterface */ virtual void SendTopic(Channel* channel, std::string &topic) { } - /** Send mode changes for an object. - * @param source The source of the mode change - * @param usertarget The target user, NULL if the target is a channel - * @param chantarget The target channel, NULL if the target is a user - * @param modedata The mode changes to send. - * @param translate A list of translation types - */ - virtual void SendMode(User* source, User* usertarget, Channel* chantarget, const parameterlist& modedata, const std::vector& translate) { } - /** 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/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