summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/eval.c b/eval.c
index ba7712b..9f8209c 100644
--- a/eval.c
+++ b/eval.c
@@ -1,6 +1,5 @@
static bool eval_block(Evaluator *ev, Block *b, Value *v);
static bool eval_expr(Evaluator *ev, Expression *e, Value *v);
-static bool type_resolve(Evaluator *ev, Type *t);
static bool block_enter(Block *b, Statement *stmts);
static void block_exit(Block *b, Statement *stmts);
@@ -787,8 +786,6 @@ static bool eval_expr(Evaluator *ev, Expression *e, Value *v) {
}
} break;
case EXPR_NEW:
- if (!type_resolve(ev, &e->new.type))
- return false;
/* it's not strictly necessary to do the if here */
if (e->new.type.kind == TYPE_ARR)
v->arr = err_calloc(1, compiler_sizeof(&e->new.type));