From: Pierre Habouzit Date: Wed, 28 Nov 2007 16:42:18 +0000 (+0100) Subject: dead code X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=e6131516658a6c59a5bf1fe5fb73a9d1714a6f02;p=apps%2Fmadmutt.git dead code Signed-off-by: Pierre Habouzit --- diff --git a/init.c b/init.c index 295c05c..cbce757 100644 --- a/init.c +++ b/init.c @@ -319,28 +319,6 @@ static int rx_from_string (struct option_t* dst, const char* val, return 1; } -static int magic_from_string (struct option_t* dst, const char* val, - char *errbuf, ssize_t errlen) -{ - int flag = -1; - - if (!dst || m_strisempty(val)) - return 0; - if (ascii_strncasecmp (val, "mbox", 4) == 0) - flag = M_MBOX; - else if (ascii_strncasecmp (val, "mh", 2) == 0) - flag = M_MH; - else if (ascii_strncasecmp (val, "maildir", 7) == 0) - flag = M_MAILDIR; - - if (flag < 0) - return 0; - - *((short*) dst->data) = flag; - return 1; - -} - static struct { unsigned short type; void (*opt_tostr) (char* dst, ssize_t dstlen, struct option_t* option);