From: Brendan Hansen Date: Mon, 8 Mar 2021 03:53:16 +0000 (-0600) Subject: removed probably unnecessary checks X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=b9783b396cf2beefa4f53e2eb35c8c44f26be027;p=onyx.git removed probably unnecessary checks --- 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) {