From: Richard Russon Date: Tue, 25 Jul 2017 15:24:50 +0000 (+0100) Subject: tidy: drop rarely-used macro X-Git-Tag: neomutt-20170907~55^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84cad6a2b01ef0557d97f6f9cdb59d7c61ef2233;p=neomutt tidy: drop rarely-used macro --- diff --git a/keymap.c b/keymap.c index d47d4c850..2810b430d 100644 --- a/keymap.c +++ b/keymap.c @@ -442,13 +442,6 @@ static void generic_tokenize_push_string(char *s, void (*generic_push)(int, int) } } -/* This should be used for macros, push, and exec commands only. */ -#define tokenize_push_macro_string(s) \ - generic_tokenize_push_string(s, mutt_push_macro_event) -/* This should be used for other unget operations. */ -#define tokenize_unget_string(s) \ - generic_tokenize_push_string(s, mutt_unget_event) - static int retry_generic(int menu, keycode_t *keys, int keyslen, int lastkey) { if (menu != MENU_EDITOR && menu != MENU_GENERIC && menu != MENU_PAGER) @@ -599,7 +592,7 @@ gotkey: return -1; } - tokenize_push_macro_string(map->macro); + generic_tokenize_push_string(map->macro, mutt_push_macro_event); map = Keymaps[menu]; pos = 0; } @@ -964,7 +957,7 @@ int mutt_parse_push(struct Buffer *buf, struct Buffer *s, unsigned long data, r = -1; } else - tokenize_push_macro_string(buf->data); + generic_tokenize_push_string(buf->data, mutt_push_macro_event); return r; }