From e63db2551051c143681bdb6f254ad4d7d426772f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 2 Aug 2016 17:51:50 +0300 Subject: Remove unused unregister dialog and states for it. --- src/client.cpp | 35 ----------------------------------- 1 file changed, 35 deletions(-) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index 04a58ad55..761a1424f 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -69,7 +69,6 @@ #include "gui/windows/registerdialog.h" #include "gui/windows/serverdialog.h" #include "gui/windows/setupwindow.h" -#include "gui/windows/unregisterdialog.h" #include "gui/windows/updaterwindow.h" #include "gui/windows/quitdialog.h" #include "gui/windows/worldselectdialog.h" @@ -1612,40 +1611,6 @@ int Client::gameExec() mCurrentDialog = nullptr; // OkDialog deletes itself break; - case State::UNREGISTER: - logger->log1("State: UNREGISTER"); - CREATEWIDGETV(mCurrentDialog, - UnRegisterDialog, - loginData); - break; - - case State::UNREGISTER_ATTEMPT: - logger->log1("State: UNREGISTER ATTEMPT"); - if (loginHandler) - { - loginHandler->unregisterAccount( - loginData.username, - loginData.password); - } - break; - - case State::UNREGISTER_SUCCESS: - logger->log1("State: UNREGISTER SUCCESS"); - if (loginHandler) - loginHandler->disconnect(); - - mCurrentDialog = DialogsManager::openErrorDialog( - // TRANSLATORS: unregister message header - _("Unregister Successful"), - // TRANSLATORS: unregister message text - _("Farewell, come back any time..."), - Modal_true); - loginData.clear(); - // The errorlistener sets the state to State::CHOOSE_SERVER - mCurrentDialog->addActionListener(&errorListener); - mCurrentDialog = nullptr; // OkDialog deletes itself - break; - case State::SWITCH_SERVER: BLOCK_START("Client::gameExec State::SWITCH_SERVER") logger->log1("State: SWITCH SERVER"); -- cgit v1.2.3-60-g2f50