]> Sergey Matveev's repositories - public-inbox.git/commitdiff
watchmaildir: get rid of unused spamdir field
authorEric Wong <e@80x24.org>
Sat, 5 Jan 2019 02:05:42 +0000 (02:05 +0000)
committerEric Wong <e@80x24.org>
Sat, 5 Jan 2019 08:32:59 +0000 (08:32 +0000)
Unused since commit 6c2caa791bd5fbf5c4edb1a4a2c1807e527348a7
("watchmaildir: support v2 repositories")

lib/PublicInbox/WatchMaildir.pm

index 064cedf0343ba1cbf7c2ed64cc659e17ba103c8b..8d8e817ad767d9097b438c84ae336ea503e12a4b 100644 (file)
@@ -19,7 +19,7 @@ use PublicInbox::Spamcheck;
 
 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,