diff options
author | Dominique Pelle <dominique.pelle@gmail.com> | 2023-03-12 21:20:59 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-03-12 21:20:59 +0000 |
commit | e764d1b4219e6615a04df1c3a6a5c0210a0a7dac (patch) | |
tree | 547326cc9cf10d5de85ba975470b076aafe02d89 /runtime | |
parent | d13dd30240e32071210f55b587182ff48757ea46 (diff) | |
download | vim-git-e764d1b4219e6615a04df1c3a6a5c0210a0a7dac.tar.gz |
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 'runtime')
-rw-r--r-- | runtime/doc/builtin.txt | 2 | ||||
-rw-r--r-- | runtime/doc/vim9.txt | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index da2bf32f7..0bdeabf70 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -2994,7 +2994,7 @@ funcref({name} [, {arglist}] [, {dict}]) Can also be used as a |method|: > GetFuncname()->funcref([arg]) < - *function()* *partial* *E700* *E922* *E923* + *function()* *partial* *E700* *E923* function({name} [, {arglist}] [, {dict}]) Return a |Funcref| variable that refers to function {name}. {name} can be the name of a user defined function or an diff --git a/runtime/doc/vim9.txt b/runtime/doc/vim9.txt index bb4a09607..51f1f16f9 100644 --- a/runtime/doc/vim9.txt +++ b/runtime/doc/vim9.txt @@ -340,7 +340,7 @@ function, the function does not need to be defined more than once: > Variable declarations with :var, :final and :const ~ *vim9-declaration* *:var* *E1079* - *E1017* *E1020* *E1054* *E1087* *E1108* *E1124* + *E1017* *E1020* *E1054* *E1087* *E1124* Local variables need to be declared with `:var`. Local constants need to be declared with `:final` or `:const`. We refer to both as "variables" in this section. @@ -1664,8 +1664,8 @@ type, it can not be used in Vim9 script. *E1211* *E1217* *E1218* *E1219* *E1220* *E1221* *E1222* *E1223* *E1224* *E1225* *E1226* *E1227* - *E1228* *E1238* *E1250* *E1251* *E1252* *E1253* - *E1256* *E1297* *E1298* *E1301* + *E1228* *E1238* *E1250* *E1251* *E1252* *E1256* + *E1297* *E1298* *E1301* Types are checked for most builtin functions to make it easier to spot mistakes. |