Pārlūkot izejas kodu

Remove duplicate code

gingerBill 4 gadi atpakaļ
vecāks
revīzija
bc59dc6389
1 mainītis faili ar 0 papildinājumiem un 13 dzēšanām
  1. 0 13
      src/checker.cpp

+ 0 - 13
src/checker.cpp

@@ -3977,19 +3977,6 @@ void check_create_file_scopes(Checker *c) {
 }
 
 void check_collect_entities_all(Checker *c) {
-	for_array(i, c->parser->packages) {
-		AstPackage *pkg = c->parser->packages[i];
-
-		for_array(j, pkg->files) {
-			AstFile *f = pkg->files[j];
-			string_map_set(&c->info.files, f->fullpath, f);
-
-			create_scope_from_file(nullptr, f);
-		}
-
-		pkg->used = true;
-	}
-
 	CheckerContext collect_entity_ctx = make_checker_context(c);
 	defer (destroy_checker_context(&collect_entity_ctx));