]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Remove ModeParser::LastParseParams and GetLastParseParams()
authorAttila Molnar <attilamolnar@hush.com>
Wed, 3 Sep 2014 12:30:04 +0000 (14:30 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Wed, 3 Sep 2014 12:30:04 +0000 (14:30 +0200)
include/mode.h
src/mode.cpp

index 5bf8dc2046329aa0ea01c99972b592785adc6f2d..f286805c8653384b690ddb9ad442a82fd566ae37 100644 (file)
@@ -577,7 +577,6 @@ class CoreExport ModeParser : public fakederef<ModeParser>
         * Use GetLastParse() to get this value, to be used for  display purposes.
         */
        std::string LastParse;
-       std::vector<std::string> LastParseParams;
        std::vector<TranslateType> LastParseTranslate;
 
        unsigned int sent[256];
@@ -642,7 +641,6 @@ class CoreExport ModeParser : public fakederef<ModeParser>
         * @return Last parsed string, as seen by users.
         */
        const std::string& GetLastParse() const { return LastParse; }
-       const std::vector<std::string>& GetLastParseParams() { return LastParseParams; }
        const std::vector<TranslateType>& GetLastParseTranslate() { return LastParseTranslate; }
 
        /** Add a mode to the mode parser.
index 5ed156bda605cdfdf1e26adc7a6039d4c6fd3a3d..e00f7dc4c98c10d021577fa380cbc8d6c760714f 100644 (file)
@@ -373,7 +373,6 @@ void ModeParser::Process(const std::vector<std::string>& parameters, User* user,
        ModeType type = targetchannel ? MODETYPE_CHANNEL : MODETYPE_USER;
 
        LastParse.clear();
-       LastParseParams.clear();
        LastParseTranslate.clear();
        LastChangeList.clear();
 
@@ -408,7 +407,6 @@ void ModeParser::Process(const std::vector<std::string>& parameters, User* user,
 
        std::string output_mode;
        std::string output_parameters;
-       LastParseParams.push_back(output_mode);
        LastParseTranslate.push_back(TR_TEXT);
 
        bool adding = true;
@@ -472,7 +470,6 @@ void ModeParser::Process(const std::vector<std::string>& parameters, User* user,
                {
                        output_parameters.push_back(' ');
                        output_parameters.append(parameter);
-                       LastParseParams.push_back(parameter);
                        LastParseTranslate.push_back(mh->GetTranslateType());
                }
                LastChangeList.push(mh, adding, parameter);
@@ -486,8 +483,6 @@ void ModeParser::Process(const std::vector<std::string>& parameters, User* user,
                }
        }
 
-       LastParseParams[0] = output_mode;
-
        if (!output_mode.empty())
        {
                LastParse = targetchannel ? targetchannel->name : targetuser->nick;