From b8c1db4e907a52981886dfbb4f033a48fccc259a Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Fri, 24 May 2013 18:20:58 +0200 Subject: [PATCH] Remove dead ModeParser code --- include/mode.h | 7 ------- src/mode.cpp | 16 ---------------- 2 files changed, 23 deletions(-) diff --git a/include/mode.h b/include/mode.h index 57f1b0669..fc6684a6f 100644 --- a/include/mode.h +++ b/include/mode.h @@ -447,11 +447,6 @@ class CoreExport ModeParser ModeParser(); ~ModeParser(); - /** Used to check if user 'd' should be allowed to do operation 'MASK' on channel 'chan'. - * for example, should 'user A' be able to 'op' on 'channel B'. - */ - User* SanityChecks(User *user,const char *dest,Channel *chan,int status); - /** Initialize all built-in modes */ static void InitBuiltinModes(); @@ -555,8 +550,6 @@ class CoreExport ModeParser */ std::string GiveModeList(ModeMasks m); - static bool PrefixComparison(ModeHandler* one, ModeHandler* two); - /** This returns the PREFIX=(ohv)@%+ section of the 005 numeric, or * just the "@%+" part if the parameter false */ diff --git a/src/mode.cpp b/src/mode.cpp index cd5c1d158..3da983627 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -184,22 +184,6 @@ void ModeWatcher::AfterMode(User*, User*, Channel*, const std::string&, bool, Mo { } -User* ModeParser::SanityChecks(User *user, const char *dest, Channel *chan, int) -{ - User *d; - if ((!user) || (!dest) || (!chan) || (!*dest)) - { - return NULL; - } - d = ServerInstance->FindNick(dest); - if (!d) - { - user->WriteNumeric(ERR_NOSUCHNICK, "%s %s :No such nick/channel",user->nick.c_str(), dest); - return NULL; - } - return d; -} - void ModeParser::DisplayCurrentModes(User *user, User* targetuser, Channel* targetchannel, const char* text) { if (targetchannel) -- 2.39.5