summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorJames Buck <jamesbuck11@gmail.com>2019-05-29 15:20:39 -0500
committerJames Buck <jamesbuck11@gmail.com>2019-05-29 15:20:39 -0500
commit4f4513f99ce2ed679b571e2dc96ba8ab4dd914a9 (patch)
tree3f1cbc561ceff0e0f8fae77251e4ded3346e922e /editor
parentb374a9ff69d272e472c619417bf3ed251037eb19 (diff)
Remove some redundant lines
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_file_dialog.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/editor/editor_file_dialog.cpp b/editor/editor_file_dialog.cpp
index 724b821267..3d198dec67 100644
--- a/editor/editor_file_dialog.cpp
+++ b/editor/editor_file_dialog.cpp
@@ -710,7 +710,6 @@ void EditorFileDialog::update_file_list() {
}
String cdir = dir_access->get_current_dir();
- bool skip_pp = access == ACCESS_RESOURCES && cdir == "res://";
dir_access->list_dir_begin();
@@ -733,7 +732,7 @@ void EditorFileDialog::update_file_list() {
if (show_hidden || !ishidden) {
if (!isdir)
files.push_back(item);
- else if (item != ".." || !skip_pp)
+ else
dirs.push_back(item);
}
}
@@ -764,8 +763,6 @@ void EditorFileDialog::update_file_list() {
dirs.pop_front();
}
- dirs.clear();
-
List<String> patterns;
// build filter
if (filter->get_selected() == filter->get_item_count() - 1) {
@@ -864,8 +861,6 @@ void EditorFileDialog::update_file_list() {
break;
}
}
-
- files.clear();
}
void EditorFileDialog::_filter_selected(int) {