1
0
forked from aniani/vim

patch 8.2.0965: has_funcundefined() is not used

Problem:    Has_funcundefined() is not used.
Solution:   Delete the function. (Dominique Pellé, closes #6242)
This commit is contained in:
Bram Moolenaar
2020-06-12 22:15:31 +02:00
parent 37d1673ce0
commit 5055c56cfb
3 changed files with 2 additions and 10 deletions

View File

@@ -1760,15 +1760,6 @@ has_cmdundefined(void)
return (first_autopat[(int)EVENT_CMDUNDEFINED] != NULL); 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) #if defined(FEAT_EVAL) || defined(PROTO)
/* /*
* Return TRUE when there is a TextYankPost autocommand defined. * Return TRUE when there is a TextYankPost autocommand defined.

View File

@@ -23,7 +23,6 @@ int has_textchangedI(void);
int has_textchangedP(void); int has_textchangedP(void);
int has_insertcharpre(void); int has_insertcharpre(void);
int has_cmdundefined(void); int has_cmdundefined(void);
int has_funcundefined(void);
int has_textyankpost(void); int has_textyankpost(void);
int has_completechanged(void); int has_completechanged(void);
void block_autocmds(void); void block_autocmds(void);

View File

@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
965,
/**/ /**/
964, 964,
/**/ /**/