summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJoshua Dahl <jdbener@gmail.com>2021-01-04 12:24:18 -0800
committerJoshua Dahl <jdbener@gmail.com>2021-01-04 12:24:18 -0800
commit453ef0ba89e4c328da9df8df9a336396a9c10281 (patch)
tree37f806a45e3cbe91e7cc3cadd6c8eed569075578 /core
parentadd3a825f0cb0c82026694b084f883f6f70be641 (diff)
Remove Unnecessary Double List
_OS::print_resources_by_type had two of the exact same list, one of which was never used.
Diffstat (limited to 'core')
-rw-r--r--core/core_bind.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/core_bind.cpp b/core/core_bind.cpp
index 46f05bdaf5..a84a208050 100644
--- a/core/core_bind.cpp
+++ b/core/core_bind.cpp
@@ -587,10 +587,7 @@ void _OS::print_resources_by_type(const Vector<String> &p_types) {
List<Ref<Resource>> resources;
ResourceCache::get_cached_resources(&resources);
- List<Ref<Resource>> rsrc;
- ResourceCache::get_cached_resources(&rsrc);
-
- for (List<Ref<Resource>>::Element *E = rsrc.front(); E; E = E->next()) {
+ for (List<Ref<Resource>>::Element *E = resources.front(); E; E = E->next()) {
Ref<Resource> r = E->get();
bool found = false;