about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-10-28 11:15:01 +0000
committerEric Wong <e@80x24.org>2021-10-28 19:17:12 +0000
commit2e15f8d28228d96485891d3bfd19e09a7ba776a1 (patch)
treea72f6fb1c3e823d88f25ebf3c350d86851d0baef /lib/PublicInbox
parent0de5ec392999835027db8512c6a0e00406fa4dce (diff)
downloadpublic-inbox-2e15f8d28228d96485891d3bfd19e09a7ba776a1.tar.gz
It's not much of a savings, right now, but maybe it can be in the
future.  I wanted to eliminate the "lei convert" one, too, but
convert needs to preserve keywords which isn't possible with the
generic fallback, so new tests were written for convert, instead.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/LeiInput.pm5
-rw-r--r--lib/PublicInbox/LeiRm.pm5
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/PublicInbox/LeiInput.pm b/lib/PublicInbox/LeiInput.pm
index 540681e3..84fc579d 100644
--- a/lib/PublicInbox/LeiInput.pm
+++ b/lib/PublicInbox/LeiInput.pm
@@ -64,6 +64,11 @@ sub input_mbox_cb { # base MboxReader callback
         $self->input_eml_cb($eml);
 }
 
+sub input_maildir_cb {
+        my ($fn, $kw, $eml, $self) = @_;
+        $self->input_eml_cb($eml);
+}
+
 sub input_net_cb { # imap_each, nntp_each cb
         my ($url, $uid, $kw, $eml, $self) = @_;
         $self->input_eml_cb($eml);
diff --git a/lib/PublicInbox/LeiRm.pm b/lib/PublicInbox/LeiRm.pm
index 524c178e..cc1abbff 100644
--- a/lib/PublicInbox/LeiRm.pm
+++ b/lib/PublicInbox/LeiRm.pm
@@ -13,11 +13,6 @@ sub input_eml_cb { # used by PublicInbox::LeiInput::input_fh
         $self->{lei}->{sto}->wq_do('remove_eml', $eml);
 }
 
-sub input_maildir_cb {
-        my (undef, $kw, $eml, $self) = @_; # $_[0] $filename ignored
-        input_eml_cb($self, $eml);
-}
-
 sub lei_rm {
         my ($lei, @inputs) = @_;
         $lei->_lei_store(1)->write_prepare($lei);