mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-16 08:04:07 +00:00
Remove duplicate code
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user