move some files around.
[apps/madmutt.git] / state.c
diff --git a/state.c b/state.c
index f5642af..86a75f5 100644 (file)
--- a/state.c
+++ b/state.c
 #include <stdio.h>
 #include <stdarg.h>
 
-#include <lib-lib/debug.h>
+#include <lib-mime/rfc3676.h>
 
 #include "mutt.h"
 #include "state.h"
-#include "rfc3676.h"
 
 static void state_prefix_put (const char *d, ssize_t dlen, STATE * s)
 {
@@ -78,9 +77,6 @@ void state_prefix_putc (char c, STATE * s)
       char buf[2 * SHORT_STRING];
       int j = 0, offset = 0;
       regmatch_t pmatch[1];
-#ifdef DEBUG
-      unsigned char save = '\0';
-#endif
 
       state_reset_prefix (s);
       while (regexec
@@ -102,15 +98,6 @@ void state_prefix_putc (char c, STATE * s)
       else
         snprintf (buf, sizeof (buf), "%s%s", NONULL (s->prefix), Quotebuf);
 
-#ifdef DEBUG
-      if (m_strlen(buf) >= 2) {
-        save = buf[m_strlen(buf) - 1];
-        buf[m_strlen(buf) - 1] = '\0';
-        debug_print (2, ("buf = '%s'\n", buf));
-        buf[m_strlen(buf)] = save;
-      }
-#endif
-
       state_puts (buf, s);
     }
   }