summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
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");