Mercurial > vim
comparison src/autocmd.c @ 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 | e76b83c07bd8 |
children | a427f5f26419 |
comparison
equal
deleted
inserted
replaced
20825:deaf5e8bcb72 | 20826:beb49796cb36 |
---|---|
1758 has_cmdundefined(void) | 1758 has_cmdundefined(void) |
1759 { | 1759 { |
1760 return (first_autopat[(int)EVENT_CMDUNDEFINED] != NULL); | 1760 return (first_autopat[(int)EVENT_CMDUNDEFINED] != NULL); |
1761 } | 1761 } |
1762 | 1762 |
1763 /* | |
1764 * Return TRUE when there is an FuncUndefined autocommand defined. | |
1765 */ | |
1766 int | |
1767 has_funcundefined(void) | |
1768 { | |
1769 return (first_autopat[(int)EVENT_FUNCUNDEFINED] != NULL); | |
1770 } | |
1771 | |
1772 #if defined(FEAT_EVAL) || defined(PROTO) | 1763 #if defined(FEAT_EVAL) || defined(PROTO) |
1773 /* | 1764 /* |
1774 * Return TRUE when there is a TextYankPost autocommand defined. | 1765 * Return TRUE when there is a TextYankPost autocommand defined. |
1775 */ | 1766 */ |
1776 int | 1767 int |