changeset 19257:5aab9c306181 v8.2.0187

patch 8.2.0187: reduntant code Commit: https://github.com/vim/vim/commit/0b76ad53b30232093b96a74d5ce6f02395219456 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 31 21:20:51 2020 +0100 patch 8.2.0187: reduntant code Problem: Reduntant code. Solution: Remove unused assignments. (Dominique Pelle, closes https://github.com/vim/vim/issues/5557)
author Bram Moolenaar <Bram@vim.org>
date Fri, 31 Jan 2020 21:30:04 +0100
parents 527bdb7f21bc
children 952650587332
files src/version.c src/vim9compile.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/version.c
+++ b/src/version.c
@@ -743,6 +743,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    187,
+/**/
     186,
 /**/
     185,
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -1653,7 +1653,7 @@ compile_arguments(char_u **arg, cctx_T *
 compile_call(char_u **arg, size_t varlen, cctx_T *cctx, int argcount_init)
 {
     char_u	*name = *arg;
-    char_u	*p = *arg + varlen + 1;
+    char_u	*p;
     int		argcount = argcount_init;
     char_u	namebuf[100];
     ufunc_T	*ufunc;
@@ -2058,7 +2058,6 @@ compile_get_env(char_u **arg, cctx_T *cc
     int		ret;
     char_u	*name;
 
-    start = *arg;
     ++*arg;
     len = get_env_len(arg);
     if (len == 0)