mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -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
|
/// "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()) {
|
if (check_secure()) {
|
||||||
return;
|
return;
|
||||||
@ -2077,8 +2077,6 @@ void f_getbufvar(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
|||||||
/// "settabvar()" function
|
/// "settabvar()" function
|
||||||
void f_settabvar(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
void f_settabvar(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
||||||
{
|
{
|
||||||
rettv->vval.v_number = 0;
|
|
||||||
|
|
||||||
if (check_secure()) {
|
if (check_secure()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -2110,13 +2108,13 @@ void f_settabvar(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
|||||||
/// "settabwinvar()" function
|
/// "settabwinvar()" function
|
||||||
void f_settabwinvar(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
void f_settabwinvar(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
||||||
{
|
{
|
||||||
setwinvar(argvars, rettv, 1);
|
setwinvar(argvars, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// "setwinvar()" function
|
/// "setwinvar()" function
|
||||||
void f_setwinvar(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
void f_setwinvar(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
||||||
{
|
{
|
||||||
setwinvar(argvars, rettv, 0);
|
setwinvar(argvars, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// "setbufvar()" function
|
/// "setbufvar()" function
|
||||||
|
Loading…
Reference in New Issue
Block a user