diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-03-09 15:57:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-09 15:57:30 +0100 |
commit | 922348f4c00e694961a7c9717abdcd0310c11973 (patch) | |
tree | d63eea4fbf2ec123340e62a96cb8a5a8164d9aca /main | |
parent | bc9dd15f0e4408cbde1942a11aba8fc5eed71589 (diff) | |
parent | 9b05f29894cfcc477c2963fda3618a87458bd890 (diff) |
Merge pull request #58925 from akien-mga/remove-unused-gdnative-code
Diffstat (limited to 'main')
-rw-r--r-- | main/main.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/main/main.cpp b/main/main.cpp index da79020bac..97794ece1a 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -371,11 +371,6 @@ void Main::print_help(const char *p_binary) { OS::get_singleton()->print(" --no-docbase Disallow dumping the base types (used with --doctool).\n"); OS::get_singleton()->print(" --build-solutions Build the scripting solutions (e.g. for C# projects). Implies --editor and requires a valid project to edit.\n"); OS::get_singleton()->print(" --dump-extension-api Generate JSON dump of the Godot API for GDExtension bindings named 'extension_api.json' in the current folder.\n"); -#ifdef DEBUG_METHODS_ENABLED - // TODO: Should be removed together with nativescript eventually. - OS::get_singleton()->print(" --gdnative-generate-json-api <path> Generate JSON dump of the Godot API for GDNative bindings and save it on the file specified in <path>.\n"); - OS::get_singleton()->print(" --gdnative-generate-json-builtin-api <path> Generate JSON dump of the Godot API of the builtin Variant types and utility functions for GDNative bindings and save it on the file specified in <path>.\n"); -#endif #ifdef TESTS_ENABLED OS::get_singleton()->print(" --test [--help] Run unit tests. Use --test --help for more information.\n"); #endif @@ -946,15 +941,6 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph auto_build_solutions = true; editor = true; cmdline_tool = true; -#ifdef DEBUG_METHODS_ENABLED - } else if (I->get() == "--gdnative-generate-json-api" || I->get() == "--gdnative-generate-json-builtin-api") { - // Register as an editor instance to use low-end fallback if relevant. - editor = true; - cmdline_tool = true; - // We still pass it to the main arguments since the argument handling itself is not done in this function, - // it's done in nativescript init code. - main_args.push_back(I->get()); -#endif } else if (I->get() == "--dump-extension-api") { // Register as an editor instance to use low-end fallback if relevant. editor = true; |