From: fennecdjay Date: Fri, 2 Sep 2022 11:57:25 +0000 (+0200) Subject: :art: Remove unused functions in partial.c X-Git-Tag: nightly~264^2~16 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=a4bbf8171e73d4ed632f0711328819b87649fee7;p=gwion.git :art: Remove unused functions in partial.c --- 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; }