lib/PublicInbox/Config.pm | 12 ------------ lib/PublicInbox/WWW.pm | 2 +- diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm index 35b24af4567eeb83ae1458b06eb078278970c89c..317d290a4c36954c0688609dac91694832526d25 100644 --- a/lib/PublicInbox/Config.pm +++ b/lib/PublicInbox/Config.pm @@ -5,8 +5,6 @@ # Used throughout the project for reading configuration 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/; @@ -99,16 +97,6 @@ } } close $fh or die "failed to close ($cmd) pipe: $?"; \%rv; -} - -sub try_cat { - my ($path) = @_; - my $rv; - if (open(my $fh, '<', $path)) { - local $/; - $rv = <$fh>; - } - $rv; } sub _fill { diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm index e8f1fbf0d49007fd2f1466b7511f23a9d5dc9bfa..ab3cd5d63e9794a71f2f08ff6c42efb157c3ef11 100644 --- a/lib/PublicInbox/WWW.pm +++ b/lib/PublicInbox/WWW.pm @@ -14,7 +14,7 @@ use 5.008; 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/';