]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei_overview: unnecessary g2m capture
authorEric Wong <e@80x24.org>
Fri, 19 Mar 2021 04:20:32 +0000 (07:20 +0300)
committerEric Wong <e@80x24.org>
Fri, 19 Mar 2021 06:08:24 +0000 (06:08 +0000)
Nothing like the -Wunused C compiler flag in perl, AFAIK...

lib/PublicInbox/LeiOverview.pm

index 01556273d351410c4b49b01170ec608181901f49..f63481628b41aa5e3cfc81e8bdfb7cc9ad9da1c9 100644 (file)
@@ -203,7 +203,6 @@ sub ovv_each_smsg_cb { # runs in wq worker usually
        }
        $lei->{ovv_buf} = \(my $buf = '') if !$l2m;
        if ($l2m && !$ibxish) { # remote https?:// mboxrd
-               my $g2m = $l2m->can('git_to_mail');
                my $wcb = $l2m->write_cb($lei);
                sub {
                        my ($smsg, undef, $eml) = @_; # no mitem in $_[1]