mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
Remove useless code
This commit is contained in:
+1
-2
@@ -941,8 +941,6 @@ void destroy_checker_context(CheckerContext *ctx) {
|
|||||||
|
|
||||||
void add_curr_ast_file(CheckerContext *ctx, AstFile *file) {
|
void add_curr_ast_file(CheckerContext *ctx, AstFile *file) {
|
||||||
if (file != nullptr) {
|
if (file != nullptr) {
|
||||||
TokenPos zero_pos = {};
|
|
||||||
global_error_collector.prev = zero_pos;
|
|
||||||
ctx->file = file;
|
ctx->file = file;
|
||||||
ctx->decl = file->pkg->decl_info;
|
ctx->decl = file->pkg->decl_info;
|
||||||
ctx->scope = file->scope;
|
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"));
|
Entity *test_signature = scope_lookup_current(testing_scope, str_lit("Test_Signature"));
|
||||||
|
|
||||||
|
|
||||||
AstPackage *pkg = c->info.init_package;
|
AstPackage *pkg = c->info.init_package;
|
||||||
Scope *s = pkg->scope;
|
Scope *s = pkg->scope;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user