diff options
| author | gingerBill <bill@gingerbill.org> | 2021-08-18 23:38:06 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-08-18 23:38:06 +0100 |
| commit | 54af47a13881c938ae6bfeab89f69123c1dfc62a (patch) | |
| tree | 6c42c25c9e2f306dc1e2240cfcd22812cca5f988 /src/checker.cpp | |
| parent | b84ee3ab8fc821183ca4fbdabf87bf2ed90f556c (diff) | |
Remove useless code
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index de5dd9f3c..aad54a20d 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -941,8 +941,6 @@ void destroy_checker_context(CheckerContext *ctx) { void add_curr_ast_file(CheckerContext *ctx, AstFile *file) { if (file != nullptr) { - TokenPos zero_pos = {}; - global_error_collector.prev = zero_pos; ctx->file = file; ctx->decl = file->pkg->decl_info; ctx->scope = file->scope; @@ -2056,6 +2054,7 @@ void generate_minimum_dependency_set(Checker *c, Entity *start) { Entity *test_signature = scope_lookup_current(testing_scope, str_lit("Test_Signature")); + AstPackage *pkg = c->info.init_package; Scope *s = pkg->scope; |