Mercurial > vim
comparison src/evalfunc.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 | b94cdb5ef20e |
children | 67194006cad8 |
comparison
equal
deleted
inserted
replaced
27113:93194ce58678 | 27114:98a01021e465 |
---|---|
4115 if (s == NULL || *s == NUL || (use_string && VIM_ISDIGIT(*s)) | 4115 if (s == NULL || *s == NUL || (use_string && VIM_ISDIGIT(*s)) |
4116 || (is_funcref && trans_name == NULL)) | 4116 || (is_funcref && trans_name == NULL)) |
4117 semsg(_(e_invalid_argument_str), use_string ? tv_get_string(&argvars[0]) : s); | 4117 semsg(_(e_invalid_argument_str), use_string ? tv_get_string(&argvars[0]) : s); |
4118 // Don't check an autoload name for existence here. | 4118 // Don't check an autoload name for existence here. |
4119 else if (trans_name != NULL && (is_funcref | 4119 else if (trans_name != NULL && (is_funcref |
4120 ? find_func(trans_name, is_global, NULL) == NULL | 4120 ? find_func(trans_name, is_global) == NULL |
4121 : !translated_function_exists(trans_name, is_global))) | 4121 : !translated_function_exists(trans_name, is_global))) |
4122 semsg(_(e_unknown_function_str_2), s); | 4122 semsg(_(e_unknown_function_str_2), s); |
4123 else | 4123 else |
4124 { | 4124 { |
4125 int dict_idx = 0; | 4125 int dict_idx = 0; |
4243 func_ptr_ref(pt->pt_func); | 4243 func_ptr_ref(pt->pt_func); |
4244 vim_free(name); | 4244 vim_free(name); |
4245 } | 4245 } |
4246 else if (is_funcref) | 4246 else if (is_funcref) |
4247 { | 4247 { |
4248 pt->pt_func = find_func(trans_name, is_global, NULL); | 4248 pt->pt_func = find_func(trans_name, is_global); |
4249 func_ptr_ref(pt->pt_func); | 4249 func_ptr_ref(pt->pt_func); |
4250 vim_free(name); | 4250 vim_free(name); |
4251 } | 4251 } |
4252 else | 4252 else |
4253 { | 4253 { |