From 2ebf57f270e43be6e21a8209daa50bd2698db8e1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 18 Aug 2016 19:24:30 +0300 Subject: Remove SocialWindow::showPartyCreate --- src/gui/windows/socialwindow.cpp | 35 ----------------------------------- src/gui/windows/socialwindow.h | 2 -- 2 files changed, 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); -- cgit v1.2.3-60-g2f50