]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei rm|tag: drop redundant mbox+net callbacks
authorEric Wong <e@80x24.org>
Tue, 26 Oct 2021 10:35:56 +0000 (10:35 +0000)
committerEric Wong <e@80x24.org>
Tue, 26 Oct 2021 17:43:57 +0000 (17:43 +0000)
These are supplied by the base LeiInput class

lib/PublicInbox/LeiRm.pm
lib/PublicInbox/LeiTag.pm

index 97b1c5c15dc4453205f9e9b6244486a2ba64d70e..524c178e3b471e5fba46a5f2bbd5382b065ac4b1 100644 (file)
@@ -13,16 +13,6 @@ sub input_eml_cb { # used by PublicInbox::LeiInput::input_fh
        $self->{lei}->{sto}->wq_do('remove_eml', $eml);
 }
 
-sub input_mbox_cb { # MboxReader callback
-       my ($eml, $self) = @_;
-       input_eml_cb($self, $eml);
-}
-
-sub input_net_cb { # callback for ->imap_each, ->nntp_each
-       my (undef, undef, $kw, $eml, $self) = @_; # @_[0,1]: url + uid ignored
-       input_eml_cb($self, $eml);
-}
-
 sub input_maildir_cb {
        my (undef, $kw, $eml, $self) = @_; # $_[0] $filename ignored
        input_eml_cb($self, $eml);
index 77654d1a2f2246d270ce5a3ed68888e499f46c36..d64a9f86e05ac69cc440874a39c88b1bd88465e7 100644 (file)
@@ -19,23 +19,12 @@ sub input_eml_cb { # used by PublicInbox::LeiInput::input_fh
        }
 }
 
-sub input_mbox_cb {
-       my ($eml, $self) = @_;
-       $eml->header_set($_) for (qw(X-Status Status));
-       input_eml_cb($self, $eml);
-}
-
 sub pmdir_cb { # called via wq_io_do from LeiPmdir->each_mdir_fn
        my ($self, $f) = @_;
        my $eml = eml_from_path($f) or return;
        input_eml_cb($self, $eml);
 }
 
-sub input_net_cb { # imap_each, nntp_each cb
-       my ($url, $uid, $kw, $eml, $self) = @_;
-       input_eml_cb($self, $eml);
-}
-
 sub lei_tag { # the "lei tag" method
        my ($lei, @argv) = @_;
        my $sto = $lei->_lei_store(1);