summaryrefslogtreecommitdiffstats
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorDominique Pelle <dominique.pelle@gmail.com>2023-03-12 21:20:59 +0000
committerBram Moolenaar <Bram@vim.org>2023-03-12 21:20:59 +0000
commite764d1b4219e6615a04df1c3a6a5c0210a0a7dac (patch)
tree547326cc9cf10d5de85ba975470b076aafe02d89 /src/ex_docmd.c
parentd13dd30240e32071210f55b587182ff48757ea46 (diff)
patch 9.0.1403: unused variables and functionsv9.0.1403
Problem: Unused variables and functions. Solution: Delete items and adjust #ifdefs. (Dominique Pellé, closes #12145)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index f945b3805a..e814431fa5 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -3569,6 +3569,7 @@ one_letter_cmd(char_u *p, cmdidx_T *idx)
return FALSE;
}
+#if defined(FEAT_EVAL) || defined(PROTO)
/*
* Return TRUE if "cmd" starts with "123->", a number followed by a method
* call.
@@ -3580,6 +3581,7 @@ number_method(char_u *cmd)
return p > cmd && (p = skipwhite(p))[0] == '-' && p[1] == '>';
}
+#endif
/*
* Find an Ex command by its name, either built-in or user.