From: Attila Molnar Date: Wed, 3 Sep 2014 12:30:04 +0000 (+0200) Subject: Remove ModeParser::LastParseParams and GetLastParseParams() X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=626005fe124d547119a113cd8c3c408a81c2f32e;p=user%2Fhenk%2Fcode%2Finspircd.git Remove ModeParser::LastParseParams and GetLastParseParams() --- diff --git a/include/mode.h b/include/mode.h index 5bf8dc204..f286805c8 100644 --- a/include/mode.h +++ b/include/mode.h @@ -577,7 +577,6 @@ class CoreExport ModeParser : public fakederef * Use GetLastParse() to get this value, to be used for display purposes. */ std::string LastParse; - std::vector LastParseParams; std::vector LastParseTranslate; unsigned int sent[256]; @@ -642,7 +641,6 @@ class CoreExport ModeParser : public fakederef * @return Last parsed string, as seen by users. */ const std::string& GetLastParse() const { return LastParse; } - const std::vector& GetLastParseParams() { return LastParseParams; } const std::vector& GetLastParseTranslate() { return LastParseTranslate; } /** Add a mode to the mode parser. diff --git a/src/mode.cpp b/src/mode.cpp index 5ed156bda..e00f7dc4c 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -373,7 +373,6 @@ void ModeParser::Process(const std::vector& 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& 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& 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& parameters, User* user, } } - LastParseParams[0] = output_mode; - if (!output_mode.empty()) { LastParse = targetchannel ? targetchannel->name : targetuser->nick;