Refactor asset loading in EditorManager to iterate over active editors; streamline loading process for better scalability and maintainability.

This commit is contained in:
scawful
2025-04-29 13:38:47 -04:00
parent ad60cd3fd3
commit dcd7a81432
2 changed files with 3 additions and 10 deletions

View File

@@ -140,14 +140,6 @@ class EditorSet {
MemoryEditorWithDiffChecker memory_editor_;
std::vector<Editor*> active_editors_;
void CleanupUnusedTextures(uint64_t current_time, uint64_t timeout) {
if (active_editors_.size() > 0) {
for (auto editor : active_editors_) {
editor->CleanupUnusedTextures(current_time, timeout);
}
}
}
};
} // namespace editor