From 7e24935c71e9d6e9a08e2afa56b55b74ddc957e9 Mon Sep 17 00:00:00 2001 From: "Eric Wong (Contractor, The Linux Foundation)" Date: Sun, 9 Jun 2019 02:51:41 +0000 Subject: admin: remove warning arg for unconfigured inboxes 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 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/PublicInbox/Admin.pm') diff --git a/lib/PublicInbox/Admin.pm b/lib/PublicInbox/Admin.pm index 4a862c6d..419cb350 100644 --- a/lib/PublicInbox/Admin.pm +++ b/lib/PublicInbox/Admin.pm @@ -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]; -- cgit v1.2.3-24-ge0c7