From bc80ff829ac205c68dfab45a21d4732cf5b8c2d0 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Mon, 23 May 2022 20:38:57 -0300 Subject: [PATCH] lib/message: drop _notmuch_message_get_thread_id_only This function has been unused since commit 4083fd8. --- lib/message.cc | 17 ----------------- lib/notmuch-private.h | 3 --- 2 files changed, 20 deletions(-) diff --git a/lib/message.cc b/lib/message.cc index c331346f..71ce8b79 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -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) { diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h index 3cc79bc4..c63cfe5e 100644 --- a/lib/notmuch-private.h +++ b/lib/notmuch-private.h @@ -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