# HG changeset patch # User Bram Moolenaar # Date 1580502604 -3600 # Node ID 5aab9c306181db9399eb6f14f74913a41c5daec3 # Parent 527bdb7f21bca8f0164b968a9b296cfb2f89dc0f patch 8.2.0187: reduntant code Commit: https://github.com/vim/vim/commit/0b76ad53b30232093b96a74d5ce6f02395219456 Author: Bram Moolenaar 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) diff --git a/src/version.c b/src/version.c --- 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, diff --git a/src/vim9compile.c b/src/vim9compile.c --- 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)