changeset 20826:beb49796cb36 v8.2.0965

patch 8.2.0965: has_funcundefined() is not used Commit: https://github.com/vim/vim/commit/5055c56cfbedc6326c607d40c7a1241682f7675e Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 12 22:15:31 2020 +0200 patch 8.2.0965: has_funcundefined() is not used Problem: Has_funcundefined() is not used. Solution: Delete the function. (Dominique Pell?, closes https://github.com/vim/vim/issues/6242)
author Bram Moolenaar <Bram@vim.org>
date Fri, 12 Jun 2020 22:30:03 +0200
parents deaf5e8bcb72
children 0b2d6030068c
files src/autocmd.c src/proto/autocmd.pro src/version.c
diffstat 3 files changed, 2 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/autocmd.c
+++ b/src/autocmd.c
@@ -1760,15 +1760,6 @@ has_cmdundefined(void)
     return (first_autopat[(int)EVENT_CMDUNDEFINED] != NULL);
 }
 
-/*
- * Return TRUE when there is an FuncUndefined autocommand defined.
- */
-    int
-has_funcundefined(void)
-{
-    return (first_autopat[(int)EVENT_FUNCUNDEFINED] != NULL);
-}
-
 #if defined(FEAT_EVAL) || defined(PROTO)
 /*
  * Return TRUE when there is a TextYankPost autocommand defined.
--- a/src/proto/autocmd.pro
+++ b/src/proto/autocmd.pro
@@ -23,7 +23,6 @@ int has_textchangedI(void);
 int has_textchangedP(void);
 int has_insertcharpre(void);
 int has_cmdundefined(void);
-int has_funcundefined(void);
 int has_textyankpost(void);
 int has_completechanged(void);
 void block_autocmds(void);
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    965,
+/**/
     964,
 /**/
     963,