lib/message: drop _notmuch_message_get_thread_id_only

This function has been unused since commit 4083fd8.
This commit is contained in:
David Bremner 2022-05-23 20:38:57 -03:00
parent a581755fbb
commit bc80ff829a
2 changed files with 0 additions and 20 deletions

View file

@ -341,23 +341,6 @@ _notmuch_message_get_term (notmuch_message_t *message,
return value; 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 static void
_notmuch_message_ensure_metadata (notmuch_message_t *message, void *field) _notmuch_message_ensure_metadata (notmuch_message_t *message, void *field)
{ {

View file

@ -586,9 +586,6 @@ _notmuch_message_add_reply (notmuch_message_t *message,
void void
_notmuch_message_remove_unprefixed_terms (notmuch_message_t *message); _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); size_t _notmuch_message_get_thread_depth (notmuch_message_t *message);
void void