From a4bbf8171e73d4ed632f0711328819b87649fee7 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Fri, 2 Sep 2022 13:57:25 +0200 Subject: [PATCH] :art: Remove unused functions in partial.c --- src/parse/partial.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/parse/partial.c b/src/parse/partial.c index b4447da1..52e34228 100644 --- a/src/parse/partial.c +++ b/src/parse/partial.c @@ -180,17 +180,17 @@ ANN static Stmt_List partial_code(const Env env, Arg_List args, const Exp efun, ANN static uint32_t count_args_exp(Exp args) { uint32_t i = 0; - while(args && ++i) args = args->next; + do i++; + while ((args = args->next)); return i; } ANN static uint32_t count_args_func(Func f, const uint32_t i) { uint32_t max = 0; - while(f) { + do { const uint32_t len = mp_vector_len(f->def->base->args); if(len > i && len > max) max = len; - f = f->next; - } + } while ((f = f->next)); return max; } -- 2.43.0