move a function into rx.[hc]
[apps/madmutt.git] / lib.c
diff --git a/lib.c b/lib.c
index 2d0ec11..d07878a 100644 (file)
--- a/lib.c
+++ b/lib.c
@@ -109,28 +109,6 @@ void mutt_nocurses_error (const char *fmt, ...)
 }
 
 
 }
 
 
-/* these characters must be escaped in regular expressions */
-
-static char rx_special_chars[] = "^.[$()|*+?{\\";
-
-int mutt_rx_sanitize_string (char *dest, size_t destlen, const char *src)
-{
-  while (*src && --destlen > 2) {
-    if (strchr (rx_special_chars, *src)) {
-      *dest++ = '\\';
-      destlen--;
-    }
-    *dest++ = *src++;
-  }
-
-  *dest = '\0';
-
-  if (*src)
-    return -1;
-  else
-    return 0;
-}
-
 const char *
 mutt_strsysexit(int e)
 {
 const char *
 mutt_strsysexit(int e)
 {