From c0e4551249dcc1e09ee09877f136ce12fe359520 Mon Sep 17 00:00:00 2001 From: sapier Date: Fri, 13 Jun 2014 20:10:11 +0200 Subject: Remove not really used guiTextInputMenu --- src/game.cpp | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index c2ee7f311..9bbbb5ecf 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -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"<getString("formspec") == "hack:sign_text_input" - && !random_input - && !input->isKeyDown(getKeySetting("keymap_sneak"))) - { - infostream<<"Launching metadata text input"<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"<