summaryrefslogtreecommitdiff
path: root/src/gui/windows/socialwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-18 19:34:39 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-18 19:34:39 +0300
commit215ce3e68738159ec98056874a4ad86e451418d0 (patch)
treea9991ac0e4cfac325f7f8663c5947f81bd84edaf /src/gui/windows/socialwindow.cpp
parent2ebf57f270e43be6e21a8209daa50bd2698db8e1 (diff)
downloadmanaverse-215ce3e68738159ec98056874a4ad86e451418d0.tar.gz
manaverse-215ce3e68738159ec98056874a4ad86e451418d0.tar.bz2
manaverse-215ce3e68738159ec98056874a4ad86e451418d0.tar.xz
manaverse-215ce3e68738159ec98056874a4ad86e451418d0.zip
Remove unuse event handlers in socialwindow.
Diffstat (limited to 'src/gui/windows/socialwindow.cpp')
-rw-r--r--src/gui/windows/socialwindow.cpp64
1 files changed, 0 insertions, 64 deletions
diff --git a/src/gui/windows/socialwindow.cpp b/src/gui/windows/socialwindow.cpp
index f9e13ca98..2d53536bd 100644
--- a/src/gui/windows/socialwindow.cpp
+++ b/src/gui/windows/socialwindow.cpp
@@ -59,7 +59,6 @@ SocialWindow::SocialWindow() :
mGuilds(),
mParties(),
mPartyAcceptDialog(nullptr),
- mPartyCreateDialog(nullptr),
mAttackFilter(nullptr),
mPickupFilter(nullptr),
// TRANSLATORS: here P is title for visible players tab in social window
@@ -323,69 +322,6 @@ void SocialWindow::action(const ActionEvent &event)
mGuildInvited = 0;
mGuildAcceptDialog = nullptr;
}
- else if (eventId == "invite" && mTabs->getSelectedTabIndex() > -1)
- {
- if (mTabs->getSelectedTab())
- static_cast<SocialTab*>(mTabs->getSelectedTab())->invite();
- }
- else if (eventId == "leave" && mTabs->getSelectedTabIndex() > -1)
- {
- if (mTabs->getSelectedTab())
- static_cast<SocialTab*>(mTabs->getSelectedTab())->leave();
- }
- else if (eventId == "create guild")
- {
- if (!serverFeatures->haveNativeGuilds())
- return;
-
- if (!mGuildCreateDialog)
- return;
-
- std::string name = mGuildCreateDialog->getText();
-
- if (name.size() > 16)
- return;
-
- guildHandler->create(name);
- if (localChatTab)
- {
- // TRANSLATORS: chat message
- localChatTab->chatLog(strprintf(_("Creating guild called %s."),
- name.c_str()),
- ChatMsgType::BY_SERVER);
- }
-
- mGuildCreateDialog = nullptr;
- }
- else if (eventId == "~create guild")
- {
- mGuildCreateDialog = nullptr;
- }
- else if (eventId == "create party")
- {
- if (!mPartyCreateDialog)
- return;
-
- std::string name = mPartyCreateDialog->getText();
-
- if (name.size() > 24)
- return;
-
- partyHandler->create(name);
- if (localChatTab)
- {
- // TRANSLATORS: chat message
- localChatTab->chatLog(strprintf(_("Creating party called %s."),
- name.c_str()),
- ChatMsgType::BY_SERVER);
- }
-
- mPartyCreateDialog = nullptr;
- }
- else if (eventId == "~create party")
- {
- mPartyCreateDialog = nullptr;
- }
}
void SocialWindow::showGuildInvite(const std::string &restrict guildName,