summaryrefslogtreecommitdiff
path: root/src/gui/windows/socialwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/socialwindow.cpp')
-rw-r--r--src/gui/windows/socialwindow.cpp35
1 files changed, 0 insertions, 35 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;