diff options
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 5fab87a7d..968b6ec1e 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -3683,18 +3683,7 @@ gb_internal void check_binary_expr(CheckerContext *c, Operand *x, Ast *node, Typ ExactValue b = y->value; if (!is_type_constant_type(x->type)) { - #if 0 - gbString xt = type_to_string(x->type); - gbString err_str = expr_to_string(node); - error(op, "Invalid type, '%s', for constant binary expression '%s'", xt, err_str); - gb_string_free(err_str); - gb_string_free(xt); - x->mode = Addressing_Invalid; - #else - // NOTE(bill, 2021-04-21): The above is literally a useless error message. - // Why did I add it in the first place?! x->mode = Addressing_Value; - #endif return; } |