summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/mode.h2
-rw-r--r--src/channels.cpp1
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp1
-rw-r--r--src/modules/m_censor.cpp4
-rw-r--r--src/modules/m_chanfilter.cpp3
-rw-r--r--src/modules/m_channames.cpp2
-rw-r--r--src/modules/m_cycle.cpp2
-rw-r--r--src/modules/m_exemptchanops.cpp1
-rw-r--r--src/modules/m_nationalchars.cpp2
-rw-r--r--src/modules/m_topiclock.cpp4
10 files changed, 1 insertions, 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 &parameter, 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 &parameter, 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<ListModeBase*>(*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<void, char*, size_t>
{
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 <iostream>
typedef std::map<irc::string,irc::string> 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<bool, const std::string&>
{
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<std::string> &parameters, 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<ModResult, User*, Channel*, const std:
class ModuleExemptChanOps : public Module
{
- std::string defaults;
ExemptHandler eh;
public:
diff --git a/src/modules/m_nationalchars.cpp b/src/modules/m_nationalchars.cpp
index d65d3b49c..eb2d080c8 100644
--- a/src/modules/m_nationalchars.cpp
+++ b/src/modules/m_nationalchars.cpp
@@ -32,8 +32,6 @@
class lwbNickHandler : public HandlerBase1<bool, const std::string&>
{
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);