mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Formspec: remove gotText(wstr) remains
These functions are now unused (no caller).
This commit is contained in:
parent
fcddac6c07
commit
660b1cf9bf
3 changed files with 0 additions and 22 deletions
|
@ -31,16 +31,6 @@ struct TextDestNodeMetadata : public TextDest
|
||||||
m_p = p;
|
m_p = p;
|
||||||
m_client = client;
|
m_client = client;
|
||||||
}
|
}
|
||||||
// This is deprecated I guess? -celeron55
|
|
||||||
void gotText(const std::wstring &text)
|
|
||||||
{
|
|
||||||
std::string ntext = wide_to_utf8(text);
|
|
||||||
infostream << "Submitting 'text' field of node at (" << m_p.X << ","
|
|
||||||
<< m_p.Y << "," << m_p.Z << "): " << ntext << std::endl;
|
|
||||||
StringMap fields;
|
|
||||||
fields["text"] = ntext;
|
|
||||||
m_client->sendNodemetaFields(m_p, "", fields);
|
|
||||||
}
|
|
||||||
void gotText(const StringMap &fields)
|
void gotText(const StringMap &fields)
|
||||||
{
|
{
|
||||||
m_client->sendNodemetaFields(m_p, "", fields);
|
m_client->sendNodemetaFields(m_p, "", fields);
|
||||||
|
|
|
@ -40,12 +40,6 @@ void TextDestGuiEngine::gotText(const StringMap &fields)
|
||||||
m_engine->getScriptIface()->handleMainMenuButtons(fields);
|
m_engine->getScriptIface()->handleMainMenuButtons(fields);
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
|
||||||
void TextDestGuiEngine::gotText(const std::wstring &text)
|
|
||||||
{
|
|
||||||
m_engine->getScriptIface()->handleMainMenuEvent(wide_to_utf8(text));
|
|
||||||
}
|
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
MenuTextureSource::~MenuTextureSource()
|
MenuTextureSource::~MenuTextureSource()
|
||||||
{
|
{
|
||||||
|
|
|
@ -61,12 +61,6 @@ public:
|
||||||
*/
|
*/
|
||||||
void gotText(const StringMap &fields);
|
void gotText(const StringMap &fields);
|
||||||
|
|
||||||
/**
|
|
||||||
* receive text/events transmitted by guiFormSpecMenu
|
|
||||||
* @param text textual representation of event
|
|
||||||
*/
|
|
||||||
void gotText(const std::wstring &text);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/** target to transmit data to */
|
/** target to transmit data to */
|
||||||
GUIEngine *m_engine = nullptr;
|
GUIEngine *m_engine = nullptr;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue