unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
* [PATCH] fixup Plack-related requires
@ 2016-02-29 12:51 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2016-02-29 12:51 UTC (permalink / raw)
  To: meta

We do not need to load Plack::Request outside of WWW anymore.
---
 examples/public-inbox.psgi | 1 -
 lib/PublicInbox/WWW.pm     | 1 +
 script/public-inbox.cgi    | 2 --
 t/httpd-corner.psgi        | 1 -
 4 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/examples/public-inbox.psgi b/examples/public-inbox.psgi
index dcca3b0..55c113e 100644
--- a/examples/public-inbox.psgi
+++ b/examples/public-inbox.psgi
@@ -9,7 +9,6 @@ use strict;
 use warnings;
 use PublicInbox::WWW;
 PublicInbox::WWW->preload;
-use Plack::Request;
 use Plack::Builder;
 my $www = PublicInbox::WWW->new;
 builder {
diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm
index 98e33fd..2acb4c8 100644
--- a/lib/PublicInbox/WWW.pm
+++ b/lib/PublicInbox/WWW.pm
@@ -13,6 +13,7 @@ package PublicInbox::WWW;
 use 5.008;
 use strict;
 use warnings;
+use Plack::Request;
 use PublicInbox::Config qw(try_cat);
 use URI::Escape qw(uri_escape_utf8 uri_unescape);
 use constant SSOMA_URL => '//ssoma.public-inbox.org/';
diff --git a/script/public-inbox.cgi b/script/public-inbox.cgi
index ee9510c..5b2aefe 100755
--- a/script/public-inbox.cgi
+++ b/script/public-inbox.cgi
@@ -5,9 +5,7 @@
 # Enables using PublicInbox::WWW as a CGI script
 use strict;
 use warnings;
-use Plack::Loader;
 use Plack::Builder;
-use Plack::Request;
 use Plack::Handler::CGI;
 use PublicInbox::WWW;
 BEGIN { PublicInbox::WWW->preload if $ENV{MOD_PERL} }
diff --git a/t/httpd-corner.psgi b/t/httpd-corner.psgi
index 0e0e21a..c3bf523 100644
--- a/t/httpd-corner.psgi
+++ b/t/httpd-corner.psgi
@@ -4,7 +4,6 @@
 # Usage: plackup [OPTIONS] /path/to/this/file
 use strict;
 use warnings;
-use Plack::Request;
 use Plack::Builder;
 require Digest::SHA;
 my $app = sub {
-- 
EW


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-02-29 12:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-29 12:51 [PATCH] fixup Plack-related requires Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).