From cf017ab50652d6d9aa7043cd18262a7f43040d45 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 13 Feb 2014 11:55:03 +0300 Subject: Remove unused chat help from code. --- src/gui/widgets/tabs/guildchattab.cpp | 48 +---------------------------------- 1 file changed, 1 insertion(+), 47 deletions(-) (limited to 'src/gui/widgets/tabs/guildchattab.cpp') diff --git a/src/gui/widgets/tabs/guildchattab.cpp b/src/gui/widgets/tabs/guildchattab.cpp index 13386d18f..da1a651e1 100644 --- a/src/gui/widgets/tabs/guildchattab.cpp +++ b/src/gui/widgets/tabs/guildchattab.cpp @@ -55,50 +55,16 @@ GuildChatTab::~GuildChatTab() bool GuildChatTab::handleCommand(const std::string &restrict type, const std::string &restrict args) { - if (type == "help") - { - if (args == "invite") - { - // TRANSLATORS: guild chat tab help - chatLog(_("Command: /invite ")); - // TRANSLATORS: guild chat tab help - chatLog(_("This command invites to the guild you're in.")); - // TRANSLATORS: guild chat tab help - chatLog(_("If the has spaces in it, enclose it in " - "double quotes (\").")); - } - else if (args == "leave") - { - // TRANSLATORS: guild chat tab help - chatLog(_("Command: /leave")); - // TRANSLATORS: guild chat tab help - chatLog(_("This command causes the player to leave the guild.")); - } - else - { - return false; - } - } - else if (type == "invite" && guildManager) - { + if (type == "invite" && guildManager) guildManager->invite(args); - } else if (type == "leave" && guildManager) - { guildManager->leave(); - } else if (type == "kick" && guildManager) - { guildManager->kick(args); - } else if (type == "notice" && guildManager) - { guildManager->notice(args); - } else - { return false; - } return true; } @@ -110,18 +76,6 @@ void GuildChatTab::handleInput(const std::string &msg) guildManager->chat(ChatWindow::doReplace(msg)); } -void GuildChatTab::showHelp() -{ - // TRANSLATORS: guild chat tab help - chatLog(_("/help > Display this help.")); - // TRANSLATORS: guild chat tab help - chatLog(_("/invite > Invite a player to your guild")); - // TRANSLATORS: guild chat tab help - chatLog(_("/leave > Leave the guild you are in")); - // TRANSLATORS: guild chat tab help - chatLog(_("/kick > Kick someone from the guild you are in")); -} - void GuildChatTab::getAutoCompleteList(StringVect &names) const { if (!guildManager) -- cgit v1.2.3-70-g09d2