diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-01-29 11:11:53 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-01-29 11:11:53 +0000 |
commit | 3d0db41ece720d0e5abae914533e2a2f146b5700 (patch) | |
tree | 35e09c4545d5fed1ff0c10e2dda393cc15b0fa55 /remailer.c | |
parent | 61811193b3bc96b70f1ad68c143387bb290d7ca9 (diff) |
Add generic menu searching.
Diffstat (limited to 'remailer.c')
-rw-r--r-- | remailer.c | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -51,7 +51,6 @@ static REMAILER *mix_new_remailer (void); static const char *mix_format_caps (REMAILER *r); static int mix_chain_add (MIXCHAIN *chain, const char *s, REMAILER **type2_list); static int mix_get_caps (const char *capstr); -static int mix_search (MUTTMENU *, regex_t *, int); static void mix_add_entry (REMAILER ***, REMAILER *, size_t *, size_t *); static void mix_entry (char *b, size_t blen, MUTTMENU *menu, int num); static void mix_free_remailer (REMAILER **r); @@ -445,14 +444,6 @@ static void mix_entry (char *b, size_t blen, MUTTMENU *menu, int num) (unsigned long) type2_list[num], M_FORMAT_ARROWCURSOR); } -static int mix_search (MUTTMENU *m, regex_t *re, int n) -{ - char buf[LONG_STRING]; - - mix_entry (buf, sizeof (buf), m, n); - return (regexec (re, buf, 0, NULL, 0)); -} - static int mix_chain_add (MIXCHAIN *chain, const char *s, REMAILER **type2_list) { @@ -543,7 +534,6 @@ void mix_make_chain (LIST **chainp, int *redraw) menu->menu = MENU_MIX; menu->max = ttll; menu->make_entry = mix_entry; - menu->search = mix_search; menu->tag = NULL; menu->title = _("Select a remailer chain."); menu->data = type2_list; |