From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 859B01F83C for ; Sat, 5 Jan 2019 08:36:50 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/3] watchmaildir: get rid of unused spamdir field Date: Sat, 5 Jan 2019 08:36:48 +0000 Message-Id: <20190105083649.27331-3-e@80x24.org> In-Reply-To: <20190105083649.27331-1-e@80x24.org> References: <20190105083649.27331-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Unused since commit 6c2caa791bd5fbf5c4edb1a4a2c1807e527348a7 ("watchmaildir: support v2 repositories") --- lib/PublicInbox/WatchMaildir.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/PublicInbox/WatchMaildir.pm b/lib/PublicInbox/WatchMaildir.pm index 064cedf..8d8e817 100644 --- a/lib/PublicInbox/WatchMaildir.pm +++ b/lib/PublicInbox/WatchMaildir.pm @@ -19,7 +19,7 @@ package PublicInbox::WatchMaildir; sub new { my ($class, $config) = @_; - my (%mdmap, @mdir, $spamc, $spamdir); + my (%mdmap, @mdir, $spamc); my %uniq; # "publicinboxwatch" is the documented namespace @@ -32,7 +32,6 @@ sub new { $dir =~ s!/+\z!!; # skip "new", no MUA has seen it, yet. my $cur = "$dir/cur"; - $spamdir = $cur; my $old = $mdmap{$cur}; if (ref($old)) { foreach my $ibx (@$old) { @@ -84,7 +83,6 @@ sub new { $mdre = qr!\A($mdre)/!; bless { spamcheck => $spamcheck, - spamdir => $spamdir, mdmap => \%mdmap, mdir => \@mdir, mdre => $mdre, -- EW