summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-02 17:51:50 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-02 17:51:50 +0300
commite63db2551051c143681bdb6f254ad4d7d426772f (patch)
tree987dde969b9dabb25f1bb722c60ddf7fd92f948b /src/client.cpp
parent4f7b21282f34f38090cb6e25c60f80264192faea (diff)
downloadmv-e63db2551051c143681bdb6f254ad4d7d426772f.tar.gz
mv-e63db2551051c143681bdb6f254ad4d7d426772f.tar.bz2
mv-e63db2551051c143681bdb6f254ad4d7d426772f.tar.xz
mv-e63db2551051c143681bdb6f254ad4d7d426772f.zip
Remove unused unregister dialog and states for it.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp35
1 files changed, 0 insertions, 35 deletions
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");