소스 검색

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 453ef0ba89e4c328da9df8df9a336396a9c10281)
Joshua Dahl 4 년 전
부모
커밋
0239337475
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      core/bind/core_bind.cpp

+ 1 - 4
core/bind/core_bind.cpp

@@ -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();