From 816d59fe6794436f499841a36b02058a96bfc9da Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Sat, 14 Jan 2006 16:35:09 +0000 Subject: Removed unused var. --- src/gui/login.cpp | 6 +----- src/gui/login.h | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'src') diff --git a/src/gui/login.cpp b/src/gui/login.cpp index 13908bf9..9c198dbb 100644 --- a/src/gui/login.cpp +++ b/src/gui/login.cpp @@ -65,7 +65,7 @@ WrongDataNoticeListener::action(const std::string &eventId) } LoginDialog::LoginDialog(): - Window("Login"), mStatus(NET_IDLE), registration(false) + Window("Login"), mStatus(NET_IDLE) { userLabel = new gcn::Label("Name:"); passLabel = new gcn::Label("Password:"); @@ -229,10 +229,6 @@ LoginDialog::logic() logger->log("Connected..."); std::string user = userField->getText(); const std::string password = passField->getText(); - if (registration) - { - user += "_M"; - } attemptLogin(user, password); mStatus = NET_DATA; break; diff --git a/src/gui/login.h b/src/gui/login.h index 52ec27b1..cc6ace3d 100644 --- a/src/gui/login.h +++ b/src/gui/login.h @@ -89,7 +89,6 @@ class LoginDialog : public Window, public gcn::ActionListener { gcn::Button *cancelButton; gcn::Button *registerButton; int mStatus; - bool registration; void attemptLogin(const std::string& user, const std::string& pass); void checkLogin(); -- cgit v1.2.3-70-g09d2