From b9783b396cf2beefa4f53e2eb35c8c44f26be027 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Sun, 7 Mar 2021 21:53:16 -0600 Subject: [PATCH] removed probably unnecessary checks --- src/onyxchecker.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/onyxchecker.c b/src/onyxchecker.c index 12898e2b..0d64b75c 100644 --- a/src/onyxchecker.c +++ b/src/onyxchecker.c @@ -730,22 +730,6 @@ CheckStatus check_binaryop(AstBinaryOp** pbinop, b32 assignment_is_ok) { } if (binop_is_assignment(binop->operation)) return check_binop_assignment(binop, assignment_is_ok); - - if (binop->left->type == NULL) { - // nocheckin - // onyx_report_error(binop->left->token->pos, - // "Unable to resolve type for symbol '%b'.", - // binop->left->token->text, binop->left->token->length); - return Check_Error; - } - - if (binop->right->type == NULL) { - // nocheckin - // onyx_report_error(binop->right->token->pos, - // "Unable to resolve type for symbol '%b'.", - // binop->right->token->text, binop->right->token->length); - return Check_Error; - } // NOTE: Try operator overloading before checking everything else. if (binop->left->type->kind != Type_Kind_Basic || binop->right->type->kind != Type_Kind_Basic) { -- 2.25.1