]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-search.c
util: Fix two corner-cases in boolean term quoting function
[notmuch] / notmuch-search.c
index 91b5d10596dc987cd8b3bafb18dadb17f57a7384..bc9be4593ecc0a06b34e82bab62b9a034ffb9f40 100644 (file)
@@ -30,23 +30,6 @@ typedef enum {
     OUTPUT_TAGS
 } output_t;
 
-static char *
-sanitize_string (const void *ctx, const char *str)
-{
-    char *out, *loop;
-
-    if (NULL == str)
-       return NULL;
-
-    loop = out = talloc_strdup (ctx, str);
-
-    for (; *loop; loop++) {
-       if ((unsigned char)(*loop) < 32)
-           *loop = '?';
-    }
-    return out;
-}
-
 /* Return two stable query strings that identify exactly the matched
  * and unmatched messages currently in thread.  If there are no
  * matched or unmatched messages, the returned buffers will be