Skip to content

Commit

Permalink
Drop GUIConfirmRegistration::m_address unused field
Browse files Browse the repository at this point in the history
  • Loading branch information
nerzhul committed Mar 12, 2019
1 parent 38f6e7a commit e22a69d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/client/game.cpp
Expand Up @@ -1545,7 +1545,7 @@ bool Game::connectToServer(const std::string &playername,
} else {
registration_confirmation_shown = true;
(new GUIConfirmRegistration(guienv, guienv->getRootGUIElement(), -1,
&g_menumgr, client, playername, password, *address, connection_aborted))->drop();
&g_menumgr, client, playername, password, connection_aborted))->drop();
}
} else {
wait_time += dtime;
Expand Down
4 changes: 2 additions & 2 deletions src/gui/guiConfirmRegistration.cpp
Expand Up @@ -38,10 +38,10 @@ const int ID_cancel = 265;
GUIConfirmRegistration::GUIConfirmRegistration(gui::IGUIEnvironment *env,
gui::IGUIElement *parent, s32 id, IMenuManager *menumgr, Client *client,
const std::string &playername, const std::string &password,
const std::string &address, bool *aborted) :
bool *aborted) :
GUIModalMenu(env, parent, id, menumgr),
m_client(client), m_playername(playername), m_password(password),
m_address(address), m_aborted(aborted)
m_aborted(aborted)
{
#ifdef __ANDROID__
m_touchscreen_visible = false;
Expand Down
3 changes: 1 addition & 2 deletions src/gui/guiConfirmRegistration.h
Expand Up @@ -32,7 +32,7 @@ class GUIConfirmRegistration : public GUIModalMenu
GUIConfirmRegistration(gui::IGUIEnvironment *env, gui::IGUIElement *parent,
s32 id, IMenuManager *menumgr, Client *client,
const std::string &playername, const std::string &password,
const std::string &address, bool *aborted);
bool *aborted);
~GUIConfirmRegistration();

void removeChildren();
Expand Down Expand Up @@ -61,7 +61,6 @@ class GUIConfirmRegistration : public GUIModalMenu
Client *m_client = nullptr;
const std::string &m_playername;
const std::string &m_password;
const std::string &m_address;
bool *m_aborted = nullptr;
std::wstring m_pass_confirm = L"";
};

0 comments on commit e22a69d

Please sign in to comment.