From e6131516658a6c59a5bf1fe5fb73a9d1714a6f02 Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Wed, 28 Nov 2007 17:42:18 +0100 Subject: [PATCH] dead code Signed-off-by: Pierre Habouzit --- init.c | 22 ---------------------- 1 file changed, 22 deletions(-) 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); -- 2.20.1