dead code
authorPierre Habouzit <madcoder@debian.org>
Wed, 28 Nov 2007 16:42:18 +0000 (17:42 +0100)
committerPierre Habouzit <madcoder@debian.org>
Wed, 28 Nov 2007 16:42:18 +0000 (17:42 +0100)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
init.c

diff --git a/init.c b/init.c
index 295c05c..cbce757 100644 (file)
--- a/init.c
+++ b/init.c
@@ -319,28 +319,6 @@ static int rx_from_string (struct option_t* dst, const char* val,
   return 1;
 }
 
   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);
 static struct {
   unsigned short type;
   void (*opt_tostr) (char* dst, ssize_t dstlen, struct option_t* option);