mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07:00
vim-patch:8.2.0085: dead code in builtin functions (#27281)
Problem: Dead code in builtin functions.
Solution: Clean up the code.
3d8a513b46
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
parent
68c1b1c45a
commit
8fa67fdae5
@ -1968,7 +1968,7 @@ static void set_option_from_tv(const char *varname, typval_T *varp)
|
||||
}
|
||||
|
||||
/// "setwinvar()" and "settabwinvar()" functions
|
||||
static void setwinvar(typval_T *argvars, typval_T *rettv, int off)
|
||||
static void setwinvar(typval_T *argvars, int off)
|
||||
{
|
||||
if (check_secure()) {
|
||||
return;
|
||||
@ -2077,8 +2077,6 @@ void f_getbufvar(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
||||
/// "settabvar()" function
|
||||
void f_settabvar(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
||||
{
|
||||
rettv->vval.v_number = 0;
|
||||
|
||||
if (check_secure()) {
|
||||
return;
|
||||
}
|
||||
@ -2110,13 +2108,13 @@ void f_settabvar(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
||||
/// "settabwinvar()" function
|
||||
void f_settabwinvar(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
||||
{
|
||||
setwinvar(argvars, rettv, 1);
|
||||
setwinvar(argvars, 1);
|
||||
}
|
||||
|
||||
/// "setwinvar()" function
|
||||
void f_setwinvar(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
||||
{
|
||||
setwinvar(argvars, rettv, 0);
|
||||
setwinvar(argvars, 0);
|
||||
}
|
||||
|
||||
/// "setbufvar()" function
|
||||
|
Loading…
Reference in New Issue
Block a user