Remove duplicate code

This commit is contained in:
gingerBill
2021-07-14 00:36:48 +01:00
parent bd8e2f82be
commit bc59dc6389

View File

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