diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-01-14 16:35:09 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-01-14 16:35:09 +0000 |
commit | 816d59fe6794436f499841a36b02058a96bfc9da (patch) | |
tree | 9b96a41ea44bc4292270b2f4b033936fd041ddfe /src | |
parent | 1a0108080d6f9f2708253b58f34b0adc0a679b24 (diff) | |
download | mana-816d59fe6794436f499841a36b02058a96bfc9da.tar.gz mana-816d59fe6794436f499841a36b02058a96bfc9da.tar.bz2 mana-816d59fe6794436f499841a36b02058a96bfc9da.tar.xz mana-816d59fe6794436f499841a36b02058a96bfc9da.zip |
Removed unused var.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/login.cpp | 6 | ||||
-rw-r--r-- | src/gui/login.h | 1 |
2 files changed, 1 insertions, 6 deletions
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(); |