From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by bl2.djc.id.au (Postfix, from userid 1000) id 2B1DC218207; Sun, 19 Jul 2026 18:11:16 +1000 (AEST) Date: Sun, 19 Jul 2026 18:11:18 +1000 To: sup-commits@supmua.dev Subject: [sup.git] 03/04: drop unused indexable_content methods MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Reply-To: Dan Callaghan In-Reply-To: <178444867564.48613.6024460618149236020@bl2.djc.id.au> References: <178444867564.48613.6024460618149236020@bl2.djc.id.au> Thread-Index: AQAAEjRWR13r9gi1SqaMS5qnqIyKpA== X-Git-Host: bl2.djc.id.au X-Git-Repo: sup.git X-Git-Refname: refs/heads/develop X-Git-Reftype: branch X-Git-Rev: 04ccc8069750cb79fac9ac3a3b993c39eb1fd285 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.7.dev Auto-Submitted: auto-generated Message-Id: <20260719081116.2B1DC218207@bl2.djc.id.au> From: Dan Callaghan List-Id: New commit on branch develop: https://supmua.dev/git/sup/commit/04ccc8069750cb79fac9ac3a3b993c39eb1fd285.html commit 04ccc8069750cb79fac9ac3a3b993c39eb1fd285 Author: Dan Callaghan AuthorDate: Sun May 3 17:11:32 2026 +1000 drop unused indexable_content methods --- lib/sup/message.rb | 13 ------------- lib/sup/person.rb | 6 ------ 2 files changed, 19 deletions(-) diff --git a/lib/sup/message.rb b/lib/sup/message.rb index fb92c584..72921ac5 100644 --- a/lib/sup/message.rb +++ b/lib/sup/message.rb @@ -333,19 +333,6 @@ EOS end end - ## returns all the content from a message that will be indexed - def indexable_content - load_from_source! - [ - from && from.indexable_content, - to.map { |p| p.indexable_content }, - cc.map { |p| p.indexable_content }, - bcc.map { |p| p.indexable_content }, - indexable_chunks.map { |c| c.lines.map { |l| l.fix_encoding! } }, - indexable_subject, - ].flatten.compact.join " " - end - def indexable_body indexable_chunks.map { |c| c.lines }.flatten.compact.map { |l| l.fix_encoding! }.join " " end diff --git a/lib/sup/person.rb b/lib/sup/person.rb index 9a9ed501..7381ca6e 100644 --- a/lib/sup/person.rb +++ b/lib/sup/person.rb @@ -71,12 +71,6 @@ class Person def eql? o; email.eql? o.email end def hash; email.hash end - - ## see comments in self.from_address - def indexable_content - [name, email, email.split(/@/).first].join(" ") - end - class << self def full_address name, email