From c947b8da106c8a9448bb6fa1cc2aba82e51eb8e0 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 21 Sep 2025 04:14:51 -0400 Subject: [PATCH] refactor: remove unused fn `au_event_is_empty` #35862 Redundant with `has_event`. --- src/nvim/autocmd.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/nvim/autocmd.c b/src/nvim/autocmd.c index 7c0b972f35..9ab66f5729 100644 --- a/src/nvim/autocmd.c +++ b/src/nvim/autocmd.c @@ -2508,12 +2508,6 @@ char *aucmd_handler_to_string(AutoCmd *ac) return callback_to_string(&ac->handler_fn, NULL); } -bool au_event_is_empty(event_T event) - FUNC_ATTR_PURE -{ - return kv_size(autocmds[(int)event]) == 0; -} - // Arg Parsing Functions /// Scan over the events. "*" stands for all events.