From 5055c56cfbedc6326c607d40c7a1241682f7675e Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 12 Jun 2020 22:15:31 +0200 Subject: [PATCH] patch 8.2.0965: has_funcundefined() is not used MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: Has_funcundefined() is not used. Solution: Delete the function. (Dominique Pellé, closes #6242) --- src/autocmd.c | 9 --------- src/proto/autocmd.pro | 1 - src/version.c | 2 ++ 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/autocmd.c b/src/autocmd.c index 8e0754b69..d5b1651b7 100644 --- 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. diff --git a/src/proto/autocmd.pro b/src/proto/autocmd.pro index 7aa1de656..65a63526a 100644 --- 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); diff --git a/src/version.c b/src/version.c index 25a096274..bc4cc43f2 100644 --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 965, /**/ 964, /**/