mirror of
https://github.com/godotengine/godot.git
synced 2025-10-30 05:01:10 +00:00
Remove some redundant lines
This commit is contained in:
parent
b374a9ff69
commit
4f4513f99c
3 changed files with 1 additions and 13 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue