summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-08-14 21:42:54 +0200
committerBram Moolenaar <Bram@vim.org>2020-08-14 21:42:54 +0200
commit8d56622944d563a79676e99532bd372b2bc6fa1f (patch)
tree5041d39c957310d6c1b004111588fe2ddef27439 /src
parent41fab3eac80893fd203663fc6a7ded09b04b633f (diff)
downloadvim-git-8d56622944d563a79676e99532bd372b2bc6fa1f.tar.gz
patch 8.2.1452: Vim9: dead code in to_name_end()v8.2.1452
Problem: Vim9: dead code in to_name_end(). Solution: Remove check for lambda and dict, it won't be used.
Diffstat (limited to 'src')
-rw-r--r--src/version.c2
-rw-r--r--src/vim9compile.c11
2 files changed, 2 insertions, 11 deletions
diff --git a/src/version.c b/src/version.c
index 132af7cae..842af416b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1452,
+/**/
1451,
/**/
1450,
diff --git a/src/vim9compile.c b/src/vim9compile.c
index e5dbbefa2..bdb0f064e 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -2396,17 +2396,6 @@ to_name_const_end(char_u *arg)
if (eval_dict(&p, &rettv, NULL, TRUE) == FAIL)
p = arg;
}
- else if (p == arg && *arg == '{')
- {
- int ret = get_lambda_tv(&p, &rettv, NULL);
-
- // Can be "{x -> ret}()".
- // Can be "{'a': 1}->Func()".
- if (ret == NOTDONE)
- ret = eval_dict(&p, &rettv, NULL, FALSE);
- if (ret != OK)
- p = arg;
- }
return p;
}