Mercurial > vim
comparison src/vim9compile.c @ 27114:98a01021e465 v8.2.4086
patch 8.2.4086: "cctx" argument of find_func_even_dead() is unused
Commit: https://github.com/vim/vim/commit/d9d2fd0aa33dd9f7460d6f1e403505a60f7ce2fc
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 13 21:15:21 2022 +0000
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 13 Jan 2022 22:30:05 +0100 |
parents | 6fc63c6a7ee7 |
children | 0e88b48575ee |
comparison
equal
deleted
inserted
replaced
27113:93194ce58678 | 27114:98a01021e465 |
---|---|
294 { | 294 { |
295 // Do not check for an internal function, since it might also be a | 295 // Do not check for an internal function, since it might also be a |
296 // valid command, such as ":split" versus "split()". | 296 // valid command, such as ":split" versus "split()". |
297 // Skip "g:" before a function name. | 297 // Skip "g:" before a function name. |
298 is_global = (name[0] == 'g' && name[1] == ':'); | 298 is_global = (name[0] == 'g' && name[1] == ':'); |
299 return find_func(is_global ? name + 2 : name, is_global, cctx) != NULL; | 299 return find_func(is_global ? name + 2 : name, is_global) != NULL; |
300 } | 300 } |
301 return FALSE; | 301 return FALSE; |
302 } | 302 } |
303 | 303 |
304 /* | 304 /* |
330 p[len] = NUL; | 330 p[len] = NUL; |
331 if ((cctx != NULL | 331 if ((cctx != NULL |
332 && (lookup_local(p, len, NULL, cctx) == OK | 332 && (lookup_local(p, len, NULL, cctx) == OK |
333 || arg_exists(p, len, NULL, NULL, NULL, cctx) == OK)) | 333 || arg_exists(p, len, NULL, NULL, NULL, cctx) == OK)) |
334 || find_imported(p, len, FALSE, cctx) != NULL | 334 || find_imported(p, len, FALSE, cctx) != NULL |
335 || (ufunc = find_func_even_dead(p, FALSE, cctx)) != NULL) | 335 || (ufunc = find_func_even_dead(p, FALSE)) != NULL) |
336 { | 336 { |
337 // A local or script-local function can shadow a global function. | 337 // A local or script-local function can shadow a global function. |
338 if (ufunc == NULL || ((ufunc->uf_flags & FC_DEAD) == 0 | 338 if (ufunc == NULL || ((ufunc->uf_flags & FC_DEAD) == 0 |
339 && (!func_is_global(ufunc) | 339 && (!func_is_global(ufunc) |
340 || (p[0] == 'g' && p[1] == ':')))) | 340 || (p[0] == 'g' && p[1] == ':')))) |