From: Eric Wong Date: Wed, 1 Apr 2020 06:16:18 +0000 (+0000) Subject: smsg: inline _extract_mid functionality X-Git-Tag: v1.4.0~36 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=5557b4511a0717766364969fd374d567631e3ecf smsg: inline _extract_mid functionality No need to keep an extra sub which isn't called anywhere else, and the mid_clean call is redundant since mid_mime already plucks the msgid out of the angle brackets. --- diff --git a/lib/PublicInbox/Smsg.pm b/lib/PublicInbox/Smsg.pm index 5eb0723f..7c90b92d 100644 --- a/lib/PublicInbox/Smsg.pm +++ b/lib/PublicInbox/Smsg.pm @@ -12,7 +12,7 @@ use strict; use warnings; use base qw(Exporter); our @EXPORT_OK = qw(subject_normalized); -use PublicInbox::MID qw/mid_clean mid_mime/; +use PublicInbox::MID qw/mid_mime/; use PublicInbox::Address; use PublicInbox::MsgTime qw(msg_timestamp msg_datestamp); use Time::Local qw(timegm); @@ -178,12 +178,10 @@ sub mid ($;$) { $rv; } else { die "NO {mime} for mid\n" unless $self->{mime}; - $self->_extract_mid; # v1 w/o Xapian + mid_mime($self->{mime}) # v1 w/o Xapian } } -sub _extract_mid { mid_clean(mid_mime($_[0]->{mime})) } - our $REPLY_RE = qr/^re:\s+/i; sub subject_normalized ($) {