X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=init.c;h=c96e35095b7b9971aee7202e21d69e60051099f8;hp=2d6f7fd97d1e94583877a6da7e380dc84dfe1431;hb=2a06362a155582cd59ae2ef6f0df71694a7eede3;hpb=c8bf978fc5c4f6c793620a515fa2456a3fa9eb13 diff --git a/init.c b/init.c index 2d6f7fd..c96e350 100644 --- a/init.c +++ b/init.c @@ -20,9 +20,9 @@ #include #include #include +#include #include "mutt.h" -#include "mapping.h" #include "mutt_curses.h" #include "history.h" #include "keymap.h" @@ -2527,26 +2527,6 @@ int mutt_query_variables (LIST * queries) return 0; } -const char *mutt_getnamebyvalue (int val, const struct mapping_t *map) -{ - int i; - - for (i = 0; map[i].name; i++) - if (map[i].value == val) - return (map[i].name); - return NULL; -} - -int mutt_getvaluebyname (const char *name, const struct mapping_t *map) -{ - int i; - - for (i = 0; map[i].name; i++) - if (ascii_strcasecmp (map[i].name, name) == 0) - return (map[i].value); - return (-1); -} - static int mutt_execute_commands (LIST * p) { BUFFER err, token;