about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-04-01 06:16:18 +0000
committerEric Wong <e@yhbt.net>2020-04-02 10:27:42 +0000
commit5557b4511a0717766364969fd374d567631e3ecf (patch)
treeed11973dbb6deeba03c4c5ef18ee1d8644078193 /lib
parent28e2c4597f411590e4630911538e2f5973c50ea5 (diff)
downloadpublic-inbox-5557b4511a0717766364969fd374d567631e3ecf.tar.gz
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/Smsg.pm6
1 files changed, 2 insertions, 4 deletions
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 ($) {