diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-09-03 14:30:04 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-09-03 14:30:04 +0200 |
commit | 626005fe124d547119a113cd8c3c408a81c2f32e (patch) | |
tree | cf1f9d9494989eb159d5716882c75741d91074ca | |
parent | bc889c6e866e0570ecb44b6fe030e030bc0715f0 (diff) |
Remove ModeParser::LastParseParams and GetLastParseParams()
-rw-r--r-- | include/mode.h | 2 | ||||
-rw-r--r-- | src/mode.cpp | 5 |
2 files changed, 0 insertions, 7 deletions
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<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. 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<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; |