forked from Mirrorlandia_minetest/minetest
Drop GUIConfirmRegistration::m_address unused field
This commit is contained in:
parent
38f6e7a198
commit
e22a69d61a
@ -1545,7 +1545,7 @@ bool Game::connectToServer(const std::string &playername,
|
|||||||
} else {
|
} else {
|
||||||
registration_confirmation_shown = true;
|
registration_confirmation_shown = true;
|
||||||
(new GUIConfirmRegistration(guienv, guienv->getRootGUIElement(), -1,
|
(new GUIConfirmRegistration(guienv, guienv->getRootGUIElement(), -1,
|
||||||
&g_menumgr, client, playername, password, *address, connection_aborted))->drop();
|
&g_menumgr, client, playername, password, connection_aborted))->drop();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
wait_time += dtime;
|
wait_time += dtime;
|
||||||
|
@ -38,10 +38,10 @@ const int ID_cancel = 265;
|
|||||||
GUIConfirmRegistration::GUIConfirmRegistration(gui::IGUIEnvironment *env,
|
GUIConfirmRegistration::GUIConfirmRegistration(gui::IGUIEnvironment *env,
|
||||||
gui::IGUIElement *parent, s32 id, IMenuManager *menumgr, Client *client,
|
gui::IGUIElement *parent, s32 id, IMenuManager *menumgr, Client *client,
|
||||||
const std::string &playername, const std::string &password,
|
const std::string &playername, const std::string &password,
|
||||||
const std::string &address, bool *aborted) :
|
bool *aborted) :
|
||||||
GUIModalMenu(env, parent, id, menumgr),
|
GUIModalMenu(env, parent, id, menumgr),
|
||||||
m_client(client), m_playername(playername), m_password(password),
|
m_client(client), m_playername(playername), m_password(password),
|
||||||
m_address(address), m_aborted(aborted)
|
m_aborted(aborted)
|
||||||
{
|
{
|
||||||
#ifdef __ANDROID__
|
#ifdef __ANDROID__
|
||||||
m_touchscreen_visible = false;
|
m_touchscreen_visible = false;
|
||||||
|
@ -32,7 +32,7 @@ public:
|
|||||||
GUIConfirmRegistration(gui::IGUIEnvironment *env, gui::IGUIElement *parent,
|
GUIConfirmRegistration(gui::IGUIEnvironment *env, gui::IGUIElement *parent,
|
||||||
s32 id, IMenuManager *menumgr, Client *client,
|
s32 id, IMenuManager *menumgr, Client *client,
|
||||||
const std::string &playername, const std::string &password,
|
const std::string &playername, const std::string &password,
|
||||||
const std::string &address, bool *aborted);
|
bool *aborted);
|
||||||
~GUIConfirmRegistration();
|
~GUIConfirmRegistration();
|
||||||
|
|
||||||
void removeChildren();
|
void removeChildren();
|
||||||
@ -61,7 +61,6 @@ private:
|
|||||||
Client *m_client = nullptr;
|
Client *m_client = nullptr;
|
||||||
const std::string &m_playername;
|
const std::string &m_playername;
|
||||||
const std::string &m_password;
|
const std::string &m_password;
|
||||||
const std::string &m_address;
|
|
||||||
bool *m_aborted = nullptr;
|
bool *m_aborted = nullptr;
|
||||||
std::wstring m_pass_confirm = L"";
|
std::wstring m_pass_confirm = L"";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user