summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-18 19:24:30 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-18 19:24:30 +0300
commit2ebf57f270e43be6e21a8209daa50bd2698db8e1 (patch)
treeef1689cb7583ef452accec4cc9c95db5f8f054e9
parent8f49d216de9972f3daaba1b313f8a347560a4cb8 (diff)
downloadplus-2ebf57f270e43be6e21a8209daa50bd2698db8e1.tar.gz
plus-2ebf57f270e43be6e21a8209daa50bd2698db8e1.tar.bz2
plus-2ebf57f270e43be6e21a8209daa50bd2698db8e1.tar.xz
plus-2ebf57f270e43be6e21a8209daa50bd2698db8e1.zip
Remove SocialWindow::showPartyCreate
-rw-r--r--src/gui/windows/socialwindow.cpp35
-rw-r--r--src/gui/windows/socialwindow.h2
2 files changed, 0 insertions, 37 deletions
diff --git a/src/gui/windows/socialwindow.cpp b/src/gui/windows/socialwindow.cpp
index fbd7578a3..f9e13ca98 100644
--- a/src/gui/windows/socialwindow.cpp
+++ b/src/gui/windows/socialwindow.cpp
@@ -323,10 +323,6 @@ void SocialWindow::action(const ActionEvent &event)
mGuildInvited = 0;
mGuildAcceptDialog = nullptr;
}
- else if (eventId == "create")
- {
- showPartyCreate();
- }
else if (eventId == "invite" && mTabs->getSelectedTabIndex() > -1)
{
if (mTabs->getSelectedTab())
@@ -494,37 +490,6 @@ void SocialWindow::showPartyInvite(const std::string &restrict partyName,
mPartyId = partyId;
}
-void SocialWindow::showPartyCreate()
-{
- if (!localPlayer)
- return;
-
- if (localPlayer->getParty())
- {
- CREATEWIDGET(OkDialog,
- // TRANSLATORS: party creation message
- _("Create Party"),
- // TRANSLATORS: party creation error
- _("Cannot create party. You are already in a party"),
- // TRANSLATORS: ok dialog button
- _("OK"),
- DialogType::ERROR,
- Modal_true,
- ShowCenter_true,
- this,
- 260);
- return;
- }
-
- CREATEWIDGETV(mPartyCreateDialog, TextDialog,
- // TRANSLATORS: party creation message
- _("Party Name"),
- // TRANSLATORS: party creation message
- _("Choose your party's name."), this);
- mPartyCreateDialog->setActionEventId("create party");
- mPartyCreateDialog->addActionListener(this);
-}
-
void SocialWindow::updateActiveList()
{
mNeedUpdate = true;
diff --git a/src/gui/windows/socialwindow.h b/src/gui/windows/socialwindow.h
index dc68fb7d4..19932219e 100644
--- a/src/gui/windows/socialwindow.h
+++ b/src/gui/windows/socialwindow.h
@@ -73,8 +73,6 @@ class SocialWindow final : public Window,
const std::string &restrict inviter,
const int partyId);
- void showPartyCreate();
-
void updateActiveList();
void updateAvatar(const std::string &name);