diff options
| author | gingerBill <bill@gingerbill.org> | 2021-07-14 00:36:48 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-07-14 00:36:48 +0100 |
| commit | bc59dc6389bb9d6105b84c4628b2aaeedd8c6abe (patch) | |
| tree | ddc0eb994eda97161a1c5ae839aa76f257b7ecb9 /src | |
| parent | bd8e2f82bed231493718c811ea43e7aebed1fe8d (diff) | |
Remove duplicate code
Diffstat (limited to 'src')
| -rw-r--r-- | src/checker.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index 3f504d4ce..afe7af430 100644 --- a/src/checker.cpp +++ b/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)); |