dead code
[apps/madmutt.git] / state.c
diff --git a/state.c b/state.c
index 4d4c19a..12f3e99 100644 (file)
--- a/state.c
+++ b/state.c
@@ -12,8 +12,7 @@
 
 #include <stdlib.h>
 #include <stdio.h>
-
-#include <lib-lib/debug.h>
+#include <stdarg.h>
 
 #include "mutt.h"
 #include "state.h"
@@ -77,9 +76,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
@@ -101,15 +97,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);
     }
   }