diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-01 19:42:16 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-01 19:42:16 +0000 |
commit | b34689010a587e85ff724051f276513a15c634d0 (patch) | |
tree | bd25434ff72a7e8b1cf7e1a31fbe02b9e5f11dda | |
parent | cbadefe25a27ded93548eaa7a325d2a04bf55d7c (diff) |
patch 8.2.3976: FEARG_LAST is never usedv8.2.3976
Problem: FEARG_LAST is never used. (Dominique Pellé)
Solution: Remove FEARG_LAST and the related code.
-rw-r--r-- | src/evalfunc.c | 10 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 9 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index f491a7c980..e469520730 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -1202,7 +1202,6 @@ typedef struct #define FEARG_2 2 // base is the second argument #define FEARG_3 3 // base is the third argument #define FEARG_4 4 // base is the fourth argument -#define FEARG_LAST 9 // base is the last argument #ifdef FEAT_FLOAT # define FLOAT_FUNC(name) name @@ -2718,14 +2717,7 @@ call_internal_method( if (argcount + 1 > global_functions[fi].f_max_argc) return FCERR_TOOMANY; - if (global_functions[fi].f_argtype == FEARG_LAST) - { - // base value goes last - for (i = 0; i < argcount; ++i) - argv[i] = argvars[i]; - argv[argcount] = *basetv; - } - else if (global_functions[fi].f_argtype == FEARG_2) + if (global_functions[fi].f_argtype == FEARG_2) { // base value goes second argv[0] = argvars[0]; diff --git a/src/version.c b/src/version.c index 3b2e7d5d4f..44af31269a 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3976, +/**/ 3975, /**/ 3974, |