summaryrefslogtreecommitdiffstats
path: root/src/evalvars.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-05-25 20:33:55 +0200
committerBram Moolenaar <Bram@vim.org>2020-05-25 20:33:55 +0200
commit2eec37926db6d31beb36f162ac00357a30c093c8 (patch)
tree952c94d9785486cfbdaf1ba0c77db6e1185e274d /src/evalvars.c
parent45a1508a229b1d1d2eb79cabe55a183dc18fd040 (diff)
patch 8.2.0822: Vim9: code left over from discovery phasev8.2.0822
Problem: Vim9: code left over from discovery phase. Solution: Remove the dead code.
Diffstat (limited to 'src/evalvars.c')
-rw-r--r--src/evalvars.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/evalvars.c b/src/evalvars.c
index a45080b540..e7a1b6d7ce 100644
--- a/src/evalvars.c
+++ b/src/evalvars.c
@@ -164,7 +164,6 @@ static dict_T vimvardict; // Dictionary with v: variables
// for VIM_VERSION_ defines
#include "version.h"
-static void ex_let_const(exarg_T *eap);
static char_u *skip_var_one(char_u *arg, int include_type);
static void list_glob_vars(int *first);
static void list_buf_vars(int *first);
@@ -682,27 +681,14 @@ heredoc_get(exarg_T *eap, char_u *cmd, int script_get)
* ":let [var1, var2] = expr" unpack list.
* ":let var =<< ..." heredoc
* ":let var: string" Vim9 declaration
- */
- void
-ex_let(exarg_T *eap)
-{
- ex_let_const(eap);
-}
-
-/*
+ *
* ":const" list all variable values
* ":const var1 var2" list variable values
* ":const var = expr" assignment command.
* ":const [var1, var2] = expr" unpack list.
*/
void
-ex_const(exarg_T *eap)
-{
- ex_let_const(eap);
-}
-
- static void
-ex_let_const(exarg_T *eap)
+ex_let(exarg_T *eap)
{
char_u *arg = eap->arg;
char_u *expr = NULL;