diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-02-13 11:55:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-02-13 11:55:03 +0300 |
commit | cf017ab50652d6d9aa7043cd18262a7f43040d45 (patch) | |
tree | 733efb377b72e73580dbf143df3f8d1797f9d1f8 /src/net/ea/gui/guildtab.cpp | |
parent | 06bce926370519fbd47bf554562e6da217def498 (diff) | |
download | manaplus-cf017ab50652d6d9aa7043cd18262a7f43040d45.tar.gz manaplus-cf017ab50652d6d9aa7043cd18262a7f43040d45.tar.bz2 manaplus-cf017ab50652d6d9aa7043cd18262a7f43040d45.tar.xz manaplus-cf017ab50652d6d9aa7043cd18262a7f43040d45.zip |
Remove unused chat help from code.
Diffstat (limited to 'src/net/ea/gui/guildtab.cpp')
-rw-r--r-- | src/net/ea/gui/guildtab.cpp | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/src/net/ea/gui/guildtab.cpp b/src/net/ea/gui/guildtab.cpp index 889b9624b..46b1f1649 100644 --- a/src/net/ea/gui/guildtab.cpp +++ b/src/net/ea/gui/guildtab.cpp @@ -63,28 +63,6 @@ GuildTab::~GuildTab() bool GuildTab::handleCommand(const std::string &restrict type, const std::string &restrict args) { - if (type == "help") - { - if (args == "invite") - { - // TRANSLATORS: guild chat help - chatLog(_("Command: /invite <nick>")); - // TRANSLATORS: guild chat help - chatLog(_("This command invites <nick> to the guild you're in.")); - // TRANSLATORS: guild chat help - chatLog(_("If the <nick> has spaces in it, enclose it in " - "double quotes (\").")); - } - else if (args == "leave") - { - // TRANSLATORS: guild chat help - chatLog(_("Command: /leave")); - // TRANSLATORS: guild chat help - chatLog(_("This command causes the player to leave the guild.")); - } - else - return false; - } /* else if (type == "create" || type == "new") { @@ -94,7 +72,7 @@ bool GuildTab::handleCommand(const std::string &restrict type, Net::getGuildHandler()->create(args); } */ - else if (type == "invite" && taGuild) + if (type == "invite" && taGuild) { Net::getGuildHandler()->invite(taGuild->getId(), args); } @@ -131,18 +109,6 @@ void GuildTab::handleInput(const std::string &msg) ChatWindow::doReplace(msg)); } -void GuildTab::showHelp() -{ - // TRANSLATORS: guild chat help - chatLog(_("/help > Display this help.")); - // TRANSLATORS: guild chat help - chatLog(_("/invite > Invite a player to your guild")); - // TRANSLATORS: guild chat help - chatLog(_("/leave > Leave the guild you are in")); - // TRANSLATORS: guild chat help - chatLog(_("/kick > Kick someone from the guild you are in")); -} - void GuildTab::getAutoCompleteList(StringVect &names) const { if (taGuild) |