Skip to content
Permalink
Browse files

Remove not really used guiTextInputMenu

  • Loading branch information
sapier sapier
sapier authored and sapier committed Jun 17, 2014
1 parent cb3b42e commit c0e4551249dcc1e09ee09877f136ce12fe359520
Showing with 1 addition and 2,000 deletions.
  1. +0 −9 src/CMakeLists.txt
  2. +1 −21 src/game.cpp
  3. +0 −228 src/guiTextInputMenu.cpp
  4. +0 −56 src/guiTextInputMenu.h
  5. +0 −1,508 src/intlGUIEditBox.cpp
  6. +0 −178 src/intlGUIEditBox.h
@@ -444,7 +444,6 @@ set(minetest_SRCS
chat.cpp
hud.cpp
guiKeyChangeMenu.cpp
guiTextInputMenu.cpp
guiFormSpecMenu.cpp
guiTable.cpp
guiPasswordChange.cpp
@@ -463,14 +462,6 @@ set(minetest_SRCS
drawscene.cpp
${minetest_SCRIPT_SRCS}
)

if(USE_FREETYPE)
set(minetest_SRCS
${minetest_SRCS}
intlGUIEditBox.cpp
)
endif(USE_FREETYPE)

list(SORT minetest_SRCS)

# Server sources
@@ -31,7 +31,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "guiPasswordChange.h"
#include "guiVolumeChange.h"
#include "guiFormSpecMenu.h"
#include "guiTextInputMenu.h"
#include "tool.h"
#include "guiChatConsole.h"
#include "config.h"
@@ -2905,26 +2904,7 @@ void the_game(bool &kill, bool random_input, InputHandler *input,
repeat_rightclick_timer = 0;
infostream<<"Ground right-clicked"<<std::endl;

// Sign special case, at least until formspec is properly implemented.
// Deprecated?
if(meta && meta->getString("formspec") == "hack:sign_text_input"
&& !random_input
&& !input->isKeyDown(getKeySetting("keymap_sneak")))
{
infostream<<"Launching metadata text input"<<std::endl;

// Get a new text for it

TextDest *dest = new TextDestNodeMetadata(nodepos, &client);

std::wstring wtext = narrow_to_wide(meta->getString("text"));

(new GUITextInputMenu(guienv, guiroot, -1,
&g_menumgr, dest,
wtext))->drop();
}
// If metadata provides an inventory view, activate it
else if(meta && meta->getString("formspec") != "" && !random_input
if(meta && meta->getString("formspec") != "" && !random_input
&& !input->isKeyDown(getKeySetting("keymap_sneak")))
{
infostream<<"Launching custom inventory view"<<std::endl;

This file was deleted.

This file was deleted.

0 comments on commit c0e4551

Please sign in to comment.
You can’t perform that action at this time.