From 98ef89c392a63bb7a78df5e8d8283c848f9dd2af Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Fri, 31 Jan 2014 14:27:32 +0100 Subject: Remove some dead code --- include/mode.h | 2 -- src/channels.cpp | 1 - src/modules/extra/m_ssl_gnutls.cpp | 1 - src/modules/m_censor.cpp | 4 ---- src/modules/m_chanfilter.cpp | 3 --- src/modules/m_channames.cpp | 2 -- src/modules/m_cycle.cpp | 2 +- src/modules/m_exemptchanops.cpp | 1 - src/modules/m_nationalchars.cpp | 2 -- src/modules/m_topiclock.cpp | 4 ---- 10 files changed, 1 insertion(+), 21 deletions(-) diff --git a/include/mode.h b/include/mode.h index 9a5091e76..568c55038 100644 --- a/include/mode.h +++ b/include/mode.h @@ -385,7 +385,6 @@ class CoreExport SimpleUserModeHandler : public ModeHandler public: SimpleUserModeHandler(Module* Creator, const std::string& Name, char modeletter) : ModeHandler(Creator, Name, modeletter, PARAM_NONE, MODETYPE_USER) {} - virtual ~SimpleUserModeHandler() {} virtual ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); }; @@ -399,7 +398,6 @@ class CoreExport SimpleChannelModeHandler : public ModeHandler public: SimpleChannelModeHandler(Module* Creator, const std::string& Name, char modeletter) : ModeHandler(Creator, Name, modeletter, PARAM_NONE, MODETYPE_CHANNEL) {} - virtual ~SimpleChannelModeHandler() {} virtual ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); }; diff --git a/src/channels.cpp b/src/channels.cpp index 20d61e1d4..7d8bff661 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -438,7 +438,6 @@ ModResult Channel::GetExtBanStatus(User *user, char type) ListModeBase* banlm = static_cast(*ban); const ListModeBase::ModeList* bans = banlm->GetList(this); if (bans) - { for (ListModeBase::ModeList::const_iterator it = bans->begin(); it != bans->end(); ++it) { diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index 2add962fd..50ad4af81 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -81,7 +81,6 @@ typedef gnutls_retr_st cert_cb_last_param_type; class RandGen : public HandlerBase2 { public: - RandGen() {} void Call(char* buffer, size_t len) { #ifdef GNUTLS_HAS_RND diff --git a/src/modules/m_censor.cpp b/src/modules/m_censor.cpp index a523346a7..209d61d4a 100644 --- a/src/modules/m_censor.cpp +++ b/src/modules/m_censor.cpp @@ -20,11 +20,7 @@ */ -#define _CRT_SECURE_NO_DEPRECATE -#define _SCL_SECURE_NO_DEPRECATE - #include "inspircd.h" -#include typedef std::map censor_t; diff --git a/src/modules/m_chanfilter.cpp b/src/modules/m_chanfilter.cpp index 57b58df19..c5a429934 100644 --- a/src/modules/m_chanfilter.cpp +++ b/src/modules/m_chanfilter.cpp @@ -23,9 +23,6 @@ */ -#define _CRT_SECURE_NO_DEPRECATE -#define _SCL_SECURE_NO_DEPRECATE - #include "inspircd.h" #include "listmode.h" diff --git a/src/modules/m_channames.cpp b/src/modules/m_channames.cpp index f6d78037d..a9ef6729e 100644 --- a/src/modules/m_channames.cpp +++ b/src/modules/m_channames.cpp @@ -24,8 +24,6 @@ static std::bitset<256> allowedmap; class NewIsChannelHandler : public HandlerBase1 { public: - NewIsChannelHandler() { } - ~NewIsChannelHandler() { } bool Call(const std::string&); }; diff --git a/src/modules/m_cycle.cpp b/src/modules/m_cycle.cpp index 3dd4f41c7..e4cd0de60 100644 --- a/src/modules/m_cycle.cpp +++ b/src/modules/m_cycle.cpp @@ -34,7 +34,7 @@ class CommandCycle : public SplitCommand CmdResult HandleLocal(const std::vector ¶meters, LocalUser* user) { Channel* channel = ServerInstance->FindChan(parameters[0]); - std::string reason = ConvToStr("Cycling"); + std::string reason = "Cycling"; if (parameters.size() > 1) { diff --git a/src/modules/m_exemptchanops.cpp b/src/modules/m_exemptchanops.cpp index d0986b4c6..7eb13690a 100644 --- a/src/modules/m_exemptchanops.cpp +++ b/src/modules/m_exemptchanops.cpp @@ -107,7 +107,6 @@ class ExemptHandler : public HandlerBase3 { public: - lwbNickHandler() { } - ~lwbNickHandler() { } bool Call(const std::string&); }; diff --git a/src/modules/m_topiclock.cpp b/src/modules/m_topiclock.cpp index c7431b4c6..42ed6e4c1 100644 --- a/src/modules/m_topiclock.cpp +++ b/src/modules/m_topiclock.cpp @@ -94,10 +94,6 @@ class FlagExtItem : public ExtensionItem { } - ~FlagExtItem() - { - } - bool get(const Extensible* container) const { return (get_raw(container) != NULL); -- cgit v1.2.3