From: Bram Moolenaar Date: Fri, 31 Jan 2020 20:20:51 +0000 (+0100) Subject: patch 8.2.0187: reduntant code X-Git-Tag: v8.2.0187 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0b76ad53b30232093b96a74d5ce6f02395219456;p=thirdparty%2Fvim.git patch 8.2.0187: reduntant code Problem: Reduntant code. Solution: Remove unused assignments. (Dominique Pelle, closes #5557) --- diff --git a/src/version.c b/src/version.c index 839617a1c2..f4022c6d8a 100644 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 187, /**/ 186, /**/ diff --git a/src/vim9compile.c b/src/vim9compile.c index 69a2d1b142..fe836487ba 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -1653,7 +1653,7 @@ compile_arguments(char_u **arg, cctx_T *cctx, int *argcount) 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 *cctx) int ret; char_u *name; - start = *arg; ++*arg; len = get_env_len(arg); if (len == 0)