From 3406c7234ac15b6a2fc52afa770fb851da25c215 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 26 May 2013 23:23:47 +0200 Subject: Simplify user mode removal via ModeHandler::RemoveMode() The function does not need to be virtual because the core can remove any user mode using the default logic The optional modestack parameter was always NULL, so remove it --- src/modules/m_customprefix.cpp | 4 ---- src/modules/m_ojoin.cpp | 4 ---- 2 files changed, 8 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_customprefix.cpp b/src/modules/m_customprefix.cpp index 6f9f4da28..67d1d2fe9 100644 --- a/src/modules/m_customprefix.cpp +++ b/src/modules/m_customprefix.cpp @@ -53,10 +53,6 @@ class CustomPrefixMode : public ModeHandler return MOD_RES_PASSTHRU; } - void RemoveMode(User* user, irc::modestacker* stack) - { - } - ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding) { return MODEACTION_ALLOW; diff --git a/src/modules/m_ojoin.cpp b/src/modules/m_ojoin.cpp index 5b6335580..ff92f3fae 100644 --- a/src/modules/m_ojoin.cpp +++ b/src/modules/m_ojoin.cpp @@ -117,10 +117,6 @@ class NetworkPrefix : public ModeHandler return NETWORK_VALUE; } - void RemoveMode(User* user, irc::modestacker* stack) - { - } - ModResult AccessCheck(User* source, Channel* channel, std::string ¶meter, bool adding) { User* theuser = ServerInstance->FindNick(parameter); -- cgit v1.2.3