summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorTechnicalSoup <ben.werbowyj@gmail.com>2022-02-04 13:41:27 +1100
committerTechnicalSoup <ben.werbowyj@gmail.com>2022-02-14 16:20:31 +1100
commit899057c710dd7c0d70b5a788b86e66f99b65ec77 (patch)
treed8006cd004de74a712bd0a2f4a9082347adf8ad7 /main
parent48ed0400bc2313b9652d7f6cfd6119d784adc956 (diff)
Cleanup of preprocessor directives in main.cpp
Remove redundant set of preprocessor directives and combine duplicate if statements.
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 7cbafe37a3..38e380568d 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -1195,11 +1195,6 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
if (editor) {
packed_data->set_disabled(true);
globals->set_disable_feature_overrides(true);
- }
-#endif
-
-#ifdef TOOLS_ENABLED
- if (editor) {
Engine::get_singleton()->set_editor_hint(true);
main_args.push_back("--editor");
if (!init_windowed) {