From 829aeda5b1098a0a243e4c2da793ec81d6aea6dc Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 11 Oct 2022 12:19:37 +0200 Subject: [PATCH] Remove unused code. --- editor/editor_node.cpp | 10 ---------- editor/editor_node.h | 1 - 2 files changed, 11 deletions(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 22576dd6f..f045fd451 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -6822,15 +6822,6 @@ EditorNode::EditorNode() { remove_android_build_template->connect("confirmed", this, "_menu_option", varray(FILE_EXPLORE_ANDROID_BUILD_TEMPLATES)); gui_base->add_child(remove_android_build_template); - file_templates = memnew(EditorFileDialog); - file_templates->set_title(TTR("Import Templates From ZIP File")); - - gui_base->add_child(file_templates); - file_templates->set_mode(EditorFileDialog::MODE_OPEN_FILE); - file_templates->set_access(EditorFileDialog::ACCESS_FILESYSTEM); - file_templates->clear_filters(); - file_templates->add_filter("*.tpz ; " + TTR("Template Package")); - file = memnew(EditorFileDialog); gui_base->add_child(file); file->set_current_dir("res://"); @@ -6854,7 +6845,6 @@ EditorNode::EditorNode() { settings_menu->get_popup()->connect("id_pressed", this, "_menu_option"); file->connect("file_selected", this, "_dialog_action"); - file_templates->connect("file_selected", this, "_dialog_action"); preview_gen = memnew(AudioStreamPreviewGenerator); add_child(preview_gen); diff --git a/editor/editor_node.h b/editor/editor_node.h index 6f545ad7a..73d12e7d6 100644 --- a/editor/editor_node.h +++ b/editor/editor_node.h @@ -607,7 +607,6 @@ private: ProjectSettingsEditor *project_settings; EditorFileDialog *file; ExportTemplateManager *export_template_manager; - EditorFileDialog *file_templates; EditorFileDialog *file_script; EditorFileDialog *file_android_build_source; String current_path;