From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uFkPJSQbjGJkSgEAbAwnHQ (envelope-from ) for ; Tue, 24 May 2022 01:39:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id eP8DJSQbjGJOYAAA9RJhRA (envelope-from ) for ; Tue, 24 May 2022 01:39:16 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5E0AE39BA9 for ; Tue, 24 May 2022 01:39:16 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id AB4885F70E; Mon, 23 May 2022 23:39:08 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 5C3975F6BC for ; Mon, 23 May 2022 23:39:06 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 906B05FBD7; Mon, 23 May 2022 19:39:05 -0400 (EDT) Received: (nullmailer pid 3506948 invoked by uid 1000); Mon, 23 May 2022 23:39:02 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 4/8] lib/message: drop _notmuch_message_get_thread_id_only Date: Mon, 23 May 2022 20:38:57 -0300 Message-Id: <20220523233901.3506880-5-david@tethera.net> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220523233901.3506880-1-david@tethera.net> References: <20220523233901.3506880-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 6MRIBVS635ONBRTSQF7IKFRAMUL5T436 X-Message-ID-Hash: 6MRIBVS635ONBRTSQF7IKFRAMUL5T436 X-MailFrom: bremner@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653349156; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=sPKdQQKXlBaV7y+zeYpyyBmZGaGS7161rXO0RwbDXz8=; b=rP5VvjweZYfC1ncErKWK3IUaKNLeAZkV89i/0Jd4xrmBg5JAzAT465Q6/zvbuwNAhQ1t4w /gsIS8Am5pXtUulapP/qB/mIczRBnUdZANXSRaEy/k6AsKNUjmFx2s3GLISavsCpkp6DG0 fCibiweAJjXMNJQxXrRVKkt/Bmvb53gA+bXUoO/xvbsnLA0j6op8LQA6UlrVawvgqABlsw uYQQaP3ACGoE53imRVcJg3qmVTsPbG6cYl61OB7TK/Df+s95KnoC1l3Ls570cj6LylaCRt d7/53W0U1ZgqsoI3uewKgXaKvk1nLdfC/cKe0vfBy/Jkign4tJEgNnQc7HNnEg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653349156; a=rsa-sha256; cv=none; b=PjY1Z4nuPy6fmxvZJ6nioSZRikiYA1tZ1OttCxW8AuD+xeScj92gjYT6u71urkcCdzZAjq 557cBuTb+VqY/cwjI85HAFoVrhbTSol9Ysk0IYZHb9NMf2MhV/gt9qbwBaafBgzjMtaIx9 MUAOQdFGRJDZ2bmtfBXONKvX3DggYXRduUyAroT1WKV7L6rnhaR/VUcesXvbAnmuFkUE7h YwQLnE4Vmfmi808Lpgb3pAYQVdCSnUI5sDEOuMbsj2yvxKQYCaTTdnLg/qRAiA2Ed+Eu2P 1ulo8gPJ3yV0n9aeXzY8qBxc24PrCSdpqelSFCZRffkG+XYe2BUoY6BELoohIQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.00 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 5E0AE39BA9 X-Spam-Score: -2.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: IcvY/AHMxgoD 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 bf3a3419..09e5660b 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -340,23 +340,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 -- 2.35.2