diff src/vim9compile.c @ 23195:75f35ae990ac v8.2.2143

patch 8.2.2143: Vim9: dead code in compiling :unlet Commit: https://github.com/vim/vim/commit/ec792290eb902e01c9edfc0cb71e5235833df56a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 13 21:26:56 2020 +0100 patch 8.2.2143: Vim9: dead code in compiling :unlet Problem: Vim9: dead code in compiling :unlet. Solution: Don't check for "!" a second time.
author Bram Moolenaar <Bram@vim.org>
date Sun, 13 Dec 2020 21:30:05 +0100
parents 013aa8e2be8c
children 59f31d2eb4cf
line wrap: on
line diff
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -5993,7 +5993,7 @@ compile_assignment(char_u *arg, exarg_T 
     // for "[var, var] = expr" drop the "expr" value
     if (var_count > 0 && !semicolon)
     {
-	    if (generate_instr_drop(cctx, ISN_DROP, 1) == NULL)
+	if (generate_instr_drop(cctx, ISN_DROP, 1) == NULL)
 	    goto theend;
     }
 
@@ -6074,12 +6074,6 @@ compile_unletlock(char_u *arg, exarg_T *
 	return NULL;
     }
 
-    if (*p == '!')
-    {
-	p = skipwhite(p + 1);
-	eap->forceit = TRUE;
-    }
-
     ex_unletlock(eap, p, 0, GLV_NO_AUTOLOAD, compile_unlet, cctx);
     return eap->nextcmd == NULL ? (char_u *)"" : eap->nextcmd;
 }