patch 8.2.4086: "cctx" argument of find_func_even_dead() is unused
Problem: "cctx" argument of find_func_even_dead() is unused.
Solution: Remove the argument.
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 7e4f99f..af11ba9 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -296,7 +296,7 @@
// valid command, such as ":split" versus "split()".
// Skip "g:" before a function name.
is_global = (name[0] == 'g' && name[1] == ':');
- return find_func(is_global ? name + 2 : name, is_global, cctx) != NULL;
+ return find_func(is_global ? name + 2 : name, is_global) != NULL;
}
return FALSE;
}
@@ -332,7 +332,7 @@
&& (lookup_local(p, len, NULL, cctx) == OK
|| arg_exists(p, len, NULL, NULL, NULL, cctx) == OK))
|| find_imported(p, len, FALSE, cctx) != NULL
- || (ufunc = find_func_even_dead(p, FALSE, cctx)) != NULL)
+ || (ufunc = find_func_even_dead(p, FALSE)) != NULL)
{
// A local or script-local function can shadow a global function.
if (ufunc == NULL || ((ufunc->uf_flags & FC_DEAD) == 0