From 774786ab44ea785e61ddec2216a08cbc0eaee3e3 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Sun, 21 Jul 2024 21:17:18 +0300 Subject: [PATCH] Remove unused variables --- src/Autoload/Export.gd | 1 - src/UI/TopMenuContainer/TopMenuContainer.gd | 1 - 2 files changed, 2 deletions(-) diff --git a/src/Autoload/Export.gd b/src/Autoload/Export.gd index 4046cc8e5..85b3c04f4 100644 --- a/src/Autoload/Export.gd +++ b/src/Autoload/Export.gd @@ -302,7 +302,6 @@ func export_processed_images( ignore_overwrites: bool, export_dialog: ConfirmationDialog, project := Global.current_project ) -> bool: # Stop export if directory path or file name are not valid - var dir := DirAccess.open(project.export_directory_path) var dir_exists := DirAccess.dir_exists_absolute(project.export_directory_path) var is_valid_filename := project.file_name.is_valid_filename() if not dir_exists: diff --git a/src/UI/TopMenuContainer/TopMenuContainer.gd b/src/UI/TopMenuContainer/TopMenuContainer.gd index ee037cecf..a45630c5d 100644 --- a/src/UI/TopMenuContainer/TopMenuContainer.gd +++ b/src/UI/TopMenuContainer/TopMenuContainer.gd @@ -837,7 +837,6 @@ func help_menu_id_pressed(id: int) -> void: Global.HelpMenu.ISSUE_TRACKER: OS.shell_open(ISSUES_URL) Global.HelpMenu.OPEN_EDITOR_DATA_FOLDER: - var dir := DirAccess.open("user://") OS.shell_open(ProjectSettings.globalize_path("user://")) Global.HelpMenu.CHANGELOG: OS.shell_open(CHANGELOG_URL)