From 83e2a1c124a229351df23b336a44db1603862d98 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 29 Sep 2021 14:43:58 -0700 Subject: eval: Remove now unneeded handling of EXPRCOND We now do this evaluation during parsing. --- eval.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/eval.c b/eval.c index 48053c4..7d9a822 100644 --- a/eval.c +++ b/eval.c @@ -184,13 +184,6 @@ eval(struct expr *expr, enum evalkind kind) binary(expr, expr->op, l, r); } break; - case EXPRCOND: - l = expr->cond.t; - r = expr->cond.f; - c = eval(expr->base, kind); - if (c->kind != EXPRCONST) - break; - return eval(c->constant.i ? l : r, kind); } return expr; -- cgit v1.2.3