]> granicus.if.org Git - vim/commitdiff
patch 8.2.0965: has_funcundefined() is not used v8.2.0965
authorBram Moolenaar <Bram@vim.org>
Fri, 12 Jun 2020 20:15:31 +0000 (22:15 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 12 Jun 2020 20:15:31 +0000 (22:15 +0200)
Problem:    Has_funcundefined() is not used.
Solution:   Delete the function. (Dominique PellĂ©, closes #6242)

src/autocmd.c
src/proto/autocmd.pro
src/version.c

index 8e0754b6904b2bdbd93975ac33cc97aa1a082be0..d5b1651b7a2237df86edbf4268b5ab74dd4d476b 100644 (file)
@@ -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.
index 7aa1de6564a435333fd526cbe339ac25665c65ff..65a63526a6e3c51e9e6d473b5464f9676f02c8c2 100644 (file)
@@ -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);
index 25a096274fcef668af678be363efb71e539b8b64..bc4cc43f2e5d39995656740a080c44839658e932 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    965,
 /**/
     964,
 /**/