@@ -31,7 +31,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
31
31
#include " guiPasswordChange.h"
32
32
#include " guiVolumeChange.h"
33
33
#include " guiFormSpecMenu.h"
34
- #include " guiTextInputMenu.h"
35
34
#include " tool.h"
36
35
#include " guiChatConsole.h"
37
36
#include " config.h"
@@ -2905,26 +2904,7 @@ void the_game(bool &kill, bool random_input, InputHandler *input,
2905
2904
repeat_rightclick_timer = 0 ;
2906
2905
infostream<<" Ground right-clicked" <<std::endl;
2907
2906
2908
- // Sign special case, at least until formspec is properly implemented.
2909
- // Deprecated?
2910
- if (meta && meta->getString (" formspec" ) == " hack:sign_text_input"
2911
- && !random_input
2912
- && !input->isKeyDown (getKeySetting (" keymap_sneak" )))
2913
- {
2914
- infostream<<" Launching metadata text input" <<std::endl;
2915
-
2916
- // Get a new text for it
2917
-
2918
- TextDest *dest = new TextDestNodeMetadata (nodepos, &client);
2919
-
2920
- std::wstring wtext = narrow_to_wide (meta->getString (" text" ));
2921
-
2922
- (new GUITextInputMenu (guienv, guiroot, -1 ,
2923
- &g_menumgr, dest,
2924
- wtext))->drop ();
2925
- }
2926
- // If metadata provides an inventory view, activate it
2927
- else if (meta && meta->getString (" formspec" ) != " " && !random_input
2907
+ if (meta && meta->getString (" formspec" ) != " " && !random_input
2928
2908
&& !input->isKeyDown (getKeySetting (" keymap_sneak" )))
2929
2909
{
2930
2910
infostream<<" Launching custom inventory view" <<std::endl;
0 commit comments