]> granicus.if.org Git - vim/commitdiff
patch 8.2.3976: FEARG_LAST is never used v8.2.3976
authorBram Moolenaar <Bram@vim.org>
Sat, 1 Jan 2022 19:42:16 +0000 (19:42 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 1 Jan 2022 19:42:16 +0000 (19:42 +0000)
Problem:    FEARG_LAST is never used. (Dominique PellĂ©)
Solution:   Remove FEARG_LAST and the related code.

src/evalfunc.c
src/version.c

index f491a7c980082334107adf652d585421f07e42f5..e469520730ee94e46037c3f773cae62eebee03bd 100644 (file)
@@ -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];
index 3b2e7d5d4f32cef5c14396fec90364fd71c4d8d2..44af31269a9e863239465159f45487b32916e2a9 100644 (file)
@@ -749,6 +749,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3976,
 /**/
     3975,
 /**/