Skip to content

Commit c0e4551

Browse files
sapiersapier
sapier
authored and
sapier
committedJun 17, 2014
Remove not really used guiTextInputMenu
1 parent cb3b42e commit c0e4551

File tree

6 files changed

+1
-2000
lines changed

6 files changed

+1
-2000
lines changed
 

‎src/CMakeLists.txt

-9
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,6 @@ set(minetest_SRCS
444444
chat.cpp
445445
hud.cpp
446446
guiKeyChangeMenu.cpp
447-
guiTextInputMenu.cpp
448447
guiFormSpecMenu.cpp
449448
guiTable.cpp
450449
guiPasswordChange.cpp
@@ -463,14 +462,6 @@ set(minetest_SRCS
463462
drawscene.cpp
464463
${minetest_SCRIPT_SRCS}
465464
)
466-
467-
if(USE_FREETYPE)
468-
set(minetest_SRCS
469-
${minetest_SRCS}
470-
intlGUIEditBox.cpp
471-
)
472-
endif(USE_FREETYPE)
473-
474465
list(SORT minetest_SRCS)
475466

476467
# Server sources

‎src/game.cpp

+1-21
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
3131
#include "guiPasswordChange.h"
3232
#include "guiVolumeChange.h"
3333
#include "guiFormSpecMenu.h"
34-
#include "guiTextInputMenu.h"
3534
#include "tool.h"
3635
#include "guiChatConsole.h"
3736
#include "config.h"
@@ -2905,26 +2904,7 @@ void the_game(bool &kill, bool random_input, InputHandler *input,
29052904
repeat_rightclick_timer = 0;
29062905
infostream<<"Ground right-clicked"<<std::endl;
29072906

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
29282908
&& !input->isKeyDown(getKeySetting("keymap_sneak")))
29292909
{
29302910
infostream<<"Launching custom inventory view"<<std::endl;

‎src/guiTextInputMenu.cpp

-228
This file was deleted.

‎src/guiTextInputMenu.h

-56
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.