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

index f286805c8653384b690ddb9ad442a82fd566ae37..589ff9141496092c2d97500a202c1254efc175b9 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<TranslateType> LastParseTranslate;
 
        unsigned int sent[256];
 
@@ -641,7 +640,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<TranslateType>& GetLastParseTranslate() { return LastParseTranslate; }
 
        /** Add a mode to the mode parser.
         * Throws a ModuleException if the mode cannot be added.
index e00f7dc4c98c10d021577fa380cbc8d6c760714f..ef62c94460519ab3f5063223394a8f3b1ad40c88 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();
-       LastParseTranslate.clear();
        LastChangeList.clear();
 
        if ((!targetchannel) && ((!targetuser) || (IS_SERVER(targetuser))))
@@ -407,7 +406,6 @@ void ModeParser::Process(const std::vector<std::string>& parameters, User* user,
 
        std::string output_mode;
        std::string output_parameters;
-       LastParseTranslate.push_back(TR_TEXT);
 
        bool adding = true;
        char output_pm = '\0'; // current output state, '+' or '-'
@@ -470,7 +468,6 @@ void ModeParser::Process(const std::vector<std::string>& parameters, User* user,
                {
                        output_parameters.push_back(' ');
                        output_parameters.append(parameter);
-                       LastParseTranslate.push_back(mh->GetTranslateType());
                }
                LastChangeList.push(mh, adding, parameter);