]> Sergey Matveev's repositories - public-inbox.git/commitdiff
admin: remove warning arg for unconfigured inboxes
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Sun, 9 Jun 2019 02:51:41 +0000 (02:51 +0000)
committerEric Wong <e@80x24.org>
Sun, 9 Jun 2019 04:33:16 +0000 (04:33 +0000)
We no longer make -index warn on it, no other code uses it;
and working on unconfigured inboxes is totally reasonable
for admins who are setting things up.

lib/PublicInbox/Admin.pm

index 4a862c6d3c5af28c4d01e246516e286449605f5b..419cb350caaf64b7eea5fbc63bc18a697bdbcc79 100644 (file)
@@ -67,7 +67,7 @@ $ibx->{mainrepo} has unexpected indexlevel in Xapian: $m
 }
 
 sub resolve_inboxes {
-       my ($argv, $warn_on_unconfigured) = @_;
+       my ($argv) = @_;
        require PublicInbox::Config;
        require PublicInbox::Inbox;
 
@@ -80,9 +80,6 @@ sub resolve_inboxes {
                        my ($ibx) = @_;
                        $dir2ibx{abs_path($ibx->{mainrepo})} = $ibx;
                });
-       } elsif ($warn_on_unconfigured) {
-               # do we really care about this?  It's annoying...
-               warn $warn_on_unconfigured, "\n";
        }
        for my $i (0..$#ibxs) {
                my $dir = $ibxs[$i];