aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-search.c
diff options
context:
space:
mode:
authorGravatar Jani Nikula <jani@nikula.org>2014-02-03 21:51:43 +0200
committerGravatar David Bremner <david@tethera.net>2014-03-09 10:13:30 -0300
commit029790d3ff6e9fccfed2214efac777b8c438e318 (patch)
treeacbba0b5ea47f3641cce0d2db67c07e745148999 /notmuch-search.c
parent998a8a95c3cd19950b78c50912345669952ba3eb (diff)
util: make sanitize string available in string util for reuse
No functional changes.
Diffstat (limited to 'notmuch-search.c')
-rw-r--r--notmuch-search.c19
1 files changed, 0 insertions, 19 deletions
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