X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-search.c;h=bc9be4593ecc0a06b34e82bab62b9a034ffb9f40;hp=0262eb30a1f96829141b4fd6cc7b20ecf141ff2e;hb=76490fba3c3bd2a25e0dc294c7aee7af4fdc2b51;hpb=6d0a17c46ec112f99ebeefc9619dd9586fceaa46 diff --git a/notmuch-search.c b/notmuch-search.c index 0262eb30..bc9be459 100644 --- a/notmuch-search.c +++ b/notmuch-search.c @@ -30,25 +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 (*loop == '\t' || *loop == '\n') - *loop = ' '; - else 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