summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-06-18 14:23:44 +0200
committerGitHub <noreply@github.com>2021-06-18 14:23:44 +0200
commit98b5280d1fe6e6287c564d80a4ae7b61fc7bd4b0 (patch)
treeeadf51368196942d3ce9d82f5c944a707b08b778 /editor
parent7aebb8f81c44f5f33c4387d32824a76e46266732 (diff)
parent6c94b2cb9e9f6293b7637d2e714036d2352f33d9 (diff)
Merge pull request #49683 from lyuma/remove_late_added
Remove thread-unsafe and unused late_added_files.
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_file_system.cpp5
-rw-r--r--editor/editor_file_system.h1
2 files changed, 0 insertions, 6 deletions
diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp
index c61b097ccd..3f715c1f93 100644
--- a/editor/editor_file_system.cpp
+++ b/editor/editor_file_system.cpp
@@ -1475,8 +1475,6 @@ void EditorFileSystem::update_file(const String &p_file) {
if (cpos == -1) {
// The file did not exist, it was added.
-
- late_added_files.insert(p_file); // Remember that it was added. This mean it will be scanned and imported on editor restart.
int idx = 0;
String file_name = p_file.get_file();
@@ -1723,9 +1721,6 @@ void EditorFileSystem::_reimport_file(const String &p_file, const Map<StringName
}
}
}
-
- } else {
- late_added_files.insert(p_file); //imported files do not call update_file(), but just in case..
}
if (importer_name == "keep") {
diff --git a/editor/editor_file_system.h b/editor/editor_file_system.h
index 04879bad6d..37eee13c16 100644
--- a/editor/editor_file_system.h
+++ b/editor/editor_file_system.h
@@ -148,7 +148,6 @@ class EditorFileSystem : public Node {
void _scan_filesystem();
- Set<String> late_added_files; //keep track of files that were added, these will be re-scanned
Set<String> late_update_files;
void _save_late_updated_files();