diff options
| author | David Bremner <david@tethera.net> | 2022-05-23 20:38:57 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2022-06-25 12:55:02 -0300 |
| commit | bc80ff829ac205c68dfab45a21d4732cf5b8c2d0 (patch) | |
| tree | dff7c32e0cdf0acf8dced9c90e66c170478f3302 /lib | |
| parent | a581755fbbf4149c33740779a85f3ee1f11cd7e9 (diff) | |
lib/message: drop _notmuch_message_get_thread_id_only
This function has been unused since commit 4083fd8.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/message.cc | 17 | ||||
| -rw-r--r-- | lib/notmuch-private.h | 3 |
2 files changed, 0 insertions, 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 |
