diff src/autocmd.c @ 32144:f3987fde6dea v9.0.1403

patch 9.0.1403: unused variables and functions Commit: https://github.com/vim/vim/commit/e764d1b4219e6615a04df1c3a6a5c0210a0a7dac Author: Dominique Pelle <dominique.pelle@gmail.com> Date: Sun Mar 12 21:20:59 2023 +0000 patch 9.0.1403: unused variables and functions Problem: Unused variables and functions. Solution: Delete items and adjust #ifdefs. (Dominique Pell?, closes https://github.com/vim/vim/issues/12145)
author Bram Moolenaar <Bram@vim.org>
date Sun, 12 Mar 2023 22:30:05 +0100
parents 2d96d7f9da7e
children 6651b86aed3b
line wrap: on
line diff
--- 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.