summaryrefslogtreecommitdiff
path: root/src/vim9compile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-13 21:15:21 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-13 21:15:21 +0000
commitd9d2fd0aa33dd9f7460d6f1e403505a60f7ce2fc (patch)
treece93edde74aa48c017e39bd350b79a7955d89b22 /src/vim9compile.c
parentc43e6235c7b3e64f81c6a4e294e4e47abf7a869a (diff)
downloadvim-git-d9d2fd0aa33dd9f7460d6f1e403505a60f7ce2fc.tar.gz
patch 8.2.4086: "cctx" argument of find_func_even_dead() is unusedv8.2.4086
Problem: "cctx" argument of find_func_even_dead() is unused. Solution: Remove the argument.
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r--src/vim9compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 7e4f99fb4..af11ba929 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -296,7 +296,7 @@ item_exists(char_u *name, size_t len, int cmd UNUSED, cctx_T *cctx)
// 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 @@ check_defined(char_u *p, size_t len, cctx_T *cctx, int is_arg)
&& (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