Remove Unnecessary Double List

_OS::print_resources_by_type had two of the exact same list, one of which was never used.

(cherry picked from commit 453ef0ba89)
This commit is contained in:
Joshua Dahl 2021-01-04 12:24:18 -08:00 committed by Rémi Verschelde
parent 3002f57e1b
commit 0239337475
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -1045,10 +1045,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();