]> git.cworth.org Git - notmuch/commitdiff
lib/message: drop _notmuch_message_get_thread_id_only
authorDavid Bremner <david@tethera.net>
Mon, 23 May 2022 23:38:57 +0000 (20:38 -0300)
committerDavid Bremner <david@tethera.net>
Sat, 25 Jun 2022 15:55:02 +0000 (12:55 -0300)
This function has been unused since commit 4083fd8.

lib/message.cc
lib/notmuch-private.h

index c331346f3f27d25ab3c2faad943cb6c28840d43c..71ce8b799f8e3ab385f825697d3f3dbeec8bb287 100644 (file)
@@ -341,23 +341,6 @@ _notmuch_message_get_term (notmuch_message_t *message,
     return value;
 }
 
-/*
- * For special applications where we only want the thread id, reading
- * in all metadata is a heavy I/O penalty.
- */
-const char *
-_notmuch_message_get_thread_id_only (notmuch_message_t *message)
-{
-
-    Xapian::TermIterator i = message->doc.termlist_begin ();
-    Xapian::TermIterator end = message->doc.termlist_end ();
-
-    message->thread_id = _notmuch_message_get_term (message, i, end,
-                                                   _find_prefix ("thread"));
-    return message->thread_id;
-}
-
-
 static void
 _notmuch_message_ensure_metadata (notmuch_message_t *message, void *field)
 {
index 3cc79bc4c86148445aaaf7f831421abdbb45801d..c63cfe5e698fa6f087c53cd52abc159360320622 100644 (file)
@@ -586,9 +586,6 @@ _notmuch_message_add_reply (notmuch_message_t *message,
 void
 _notmuch_message_remove_unprefixed_terms (notmuch_message_t *message);
 
-const char *
-_notmuch_message_get_thread_id_only (notmuch_message_t *message);
-
 size_t _notmuch_message_get_thread_depth (notmuch_message_t *message);
 
 void