diff options
Diffstat (limited to 'xapian_sync.cc')
-rw-r--r-- | xapian_sync.cc | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/xapian_sync.cc b/xapian_sync.cc index 23ceb61..2604ea9 100644 --- a/xapian_sync.cc +++ b/xapian_sync.cc @@ -114,18 +114,12 @@ sync_table (sqlstmt_t &s, T &t, T &te, } } -string +static string tag_from_term (const string &term) { - assert (!strncmp (term.c_str(), notmuch_tag_prefix.c_str(), - notmuch_tag_prefix.length())); - return percent_encode (term.substr (notmuch_tag_prefix.length())); -} - -string -term_from_tag (const string &tag) -{ - return notmuch_tag_prefix + percent_decode (tag); + assert(!strncmp(term.c_str(), notmuch_tag_prefix.c_str(), + notmuch_tag_prefix.length())); + return term.substr(notmuch_tag_prefix.length()); } static void |