]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Remove some dead code
authorAttila Molnar <attilamolnar@hush.com>
Fri, 31 Jan 2014 13:27:32 +0000 (14:27 +0100)
committerAttila Molnar <attilamolnar@hush.com>
Fri, 31 Jan 2014 13:27:32 +0000 (14:27 +0100)
include/mode.h
src/channels.cpp
src/modules/extra/m_ssl_gnutls.cpp
src/modules/m_censor.cpp
src/modules/m_chanfilter.cpp
src/modules/m_channames.cpp
src/modules/m_cycle.cpp
src/modules/m_exemptchanops.cpp
src/modules/m_nationalchars.cpp
src/modules/m_topiclock.cpp

index 9a5091e76a59f7bdbadc7f771e6652a10601e607..568c550380335f67defa492880cdcb167c21d7ef 100644 (file)
@@ -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);
 };
 
index 20d61e1d4afa93df84c712388456cc3e22c12678..7d8bff661311ff92fc7a9746be3ed034ab1f6ebc 100644 (file)
@@ -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)
                {
index 2add962fd05d1157e4a93ed2b6469a8c07f2f51f..50ad4af816c876fc1398a223cbbfa702fb438606 100644 (file)
@@ -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
index a523346a7725098d1807928c57cd41a8bcb4a7b4..209d61d4a0ac2ecdf4fb419c7dc0216099b35432 100644 (file)
  */
 
 
-#define _CRT_SECURE_NO_DEPRECATE
-#define _SCL_SECURE_NO_DEPRECATE
-
 #include "inspircd.h"
-#include <iostream>
 
 typedef std::map<irc::string,irc::string> censor_t;
 
index 57b58df1969fed57084da1d301f33690104fe938..c5a429934b2817fe7645e97466a675f70095413e 100644 (file)
@@ -23,9 +23,6 @@
  */
 
 
-#define _CRT_SECURE_NO_DEPRECATE
-#define _SCL_SECURE_NO_DEPRECATE
-
 #include "inspircd.h"
 #include "listmode.h"
 
index f6d78037d660f7ef1abd4e084f40fe895eb00183..a9ef6729ea7a0cb5a8ab1a30bc7afa6abc897862 100644 (file)
@@ -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&);
 };
 
index 3dd4f41c70f54580f5143ddb2866f4e08800809d..e4cd0de60a0b1ef5f72bd195b54e25f1c3c98c72 100644 (file)
@@ -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)
                {
index d0986b4c69b11b91af741fa5b2213624d6c064f2..7eb13690a19ef46df0ae83d33bfe8148d7410db1 100644 (file)
@@ -107,7 +107,6 @@ class ExemptHandler : public HandlerBase3<ModResult, User*, Channel*, const std:
 
 class ModuleExemptChanOps : public Module
 {
-       std::string defaults;
        ExemptHandler eh;
 
  public:
index d65d3b49cd383fd6afdc3b4d3ed93340aed4f56c..eb2d080c8d07bb7374de29aea8d386ea860d2a39 100644 (file)
@@ -32,8 +32,6 @@
 class lwbNickHandler : public HandlerBase1<bool, const std::string&>
 {
  public:
-       lwbNickHandler() { }
-       ~lwbNickHandler() { }
        bool Call(const std::string&);
 };
 
index c7431b4c67582d2c95fcab03f0291a6b267e905f..42ed6e4c1ced14aa3606be15b009a08e77ee77eb 100644 (file)
@@ -94,10 +94,6 @@ class FlagExtItem : public ExtensionItem
        {
        }
 
-       ~FlagExtItem()
-       {
-       }
-
        bool get(const Extensible* container) const
        {
                return (get_raw(container) != NULL);