From 7ba882b543b45794301f2490fceb84b0dd9c60e1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 3 May 2012 23:22:30 +0300 Subject: Remove some commented code. --- src/gui/socialwindow.cpp | 55 ------------------------------------------------ 1 file changed, 55 deletions(-) (limited to 'src/gui/socialwindow.cpp') diff --git a/src/gui/socialwindow.cpp b/src/gui/socialwindow.cpp index 876c98d32..74fcfc851 100644 --- a/src/gui/socialwindow.cpp +++ b/src/gui/socialwindow.cpp @@ -262,39 +262,6 @@ public: void action(const gcn::ActionEvent &event A_UNUSED) { -/* - if (event.getId() == "do invite") - { - std::string name = mInviteDialog->getText(); - Net::getGuildHandler()->invite(mGuild->getId(), name); - - if (localChatTab) - { - localChatTab->chatLog(strprintf( - _("Invited user %s to guild %s."), - name.c_str(), mGuild->getName().c_str()), BY_SERVER); - } - mInviteDialog = 0; - } - else if (event.getId() == "~do invite") - { - mInviteDialog = 0; - } - else if (event.getId() == "yes") - { - Net::getGuildHandler()->leave(mGuild->getId()); - if (localChatTab) - { - localChatTab->chatLog(strprintf(_("Guild %s quit requested."), - mGuild->getName().c_str()), BY_SERVER); - } - mConfirmDialog = 0; - } - else if (event.getId() == "~yes") - { - mConfirmDialog = 0; - } -*/ } void updateList() @@ -312,26 +279,10 @@ public: protected: void invite() { -/* - mInviteDialog = new TextDialog(_("Member Invite to Guild"), - strprintf(_("Who would you like to invite to guild %s?"), - mGuild->getName().c_str()), - socialWindow); - mInviteDialog->setActionEventId("do invite"); - mInviteDialog->addActionListener(this); -*/ } void leave() { -/* - mConfirmDialog = new ConfirmDialog(_("Leave Guild?"), - strprintf(_("Are you sure you want to leave guild %s?"), - mGuild->getName().c_str()), - socialWindow); - - mConfirmDialog->addActionListener(this); -*/ } private: @@ -435,12 +386,6 @@ private: Party *mParty; }; -/*class BuddyTab : public SocialTab -{ - // TODO? -};*/ - - class BeingsListModal : public AvatarListModel { public: -- cgit v1.2.3-70-g09d2