It's moved into the Inbox module and we no longer use it
in WWW
package PublicInbox::Config;
use strict;
use warnings;
-use base qw/Exporter/;
-our @EXPORT_OK = qw/try_cat/;
require PublicInbox::Inbox;
use PublicInbox::Spawn qw(popen_rd);
use File::Path::Expand qw/expand_filename/;
\%rv;
}
-sub try_cat {
- my ($path) = @_;
- my $rv;
- if (open(my $fh, '<', $path)) {
- local $/;
- $rv = <$fh>;
- }
- $rv;
-}
-
sub _fill {
my ($self, $pfx) = @_;
my $rv = {};
use strict;
use warnings;
use Plack::Request;
-use PublicInbox::Config qw(try_cat);
+use PublicInbox::Config;
use URI::Escape qw(uri_escape_utf8 uri_unescape);
use constant SSOMA_URL => '//ssoma.public-inbox.org/';
use constant PI_URL => '//public-inbox.org/';