summaryrefslogtreecommitdiffstats
path: root/src/autocmd.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/autocmd.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/autocmd.c')
-rw-r--r--src/autocmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/autocmd.c b/src/autocmd.c
index a409379b61..fe2b6cbb14 100644
--- a/src/autocmd.c
+++ b/src/autocmd.c
@@ -2519,6 +2519,7 @@ auto_next_pat(
}
}
+#if defined(FEAT_EVAL) || defined(PROTO)
/*
* Get the script context where autocommand "acp" is defined.
*/
@@ -2527,6 +2528,7 @@ acp_script_ctx(AutoPatCmd_T *acp)
{
return &acp->script_ctx;
}
+#endif
/*
* Get next autocommand command.