changeset 26895:46e6ef4cf18b v8.2.3976

patch 8.2.3976: FEARG_LAST is never used Commit: https://github.com/vim/vim/commit/b34689010a587e85ff724051f276513a15c634d0 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 1 19:42:16 2022 +0000 patch 8.2.3976: FEARG_LAST is never used Problem: FEARG_LAST is never used. (Dominique Pell?) Solution: Remove FEARG_LAST and the related code.
author Bram Moolenaar <Bram@vim.org>
date Sat, 01 Jan 2022 20:45:04 +0100
parents c14895e06302
children e58f8c38545d
files src/evalfunc.c src/version.c
diffstat 2 files changed, 3 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- 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];
--- 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,