From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id E09FC20712 for ; Sat, 9 Jul 2016 03:18:42 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 4/6] cleanup some unnecessary use/requires Date: Sat, 9 Jul 2016 03:18:33 +0000 Message-Id: <20160709031835.21005-5-e@80x24.org> In-Reply-To: <20160709031835.21005-1-e@80x24.org> References: <20160709031835.21005-1-e@80x24.org> List-Id: Hopefully this can reduce memory overhead for people that use one-shot CGI. --- lib/PublicInbox/GitHTTPBackend.pm | 1 + lib/PublicInbox/Mbox.pm | 1 - lib/PublicInbox/View.pm | 2 -- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/PublicInbox/GitHTTPBackend.pm b/lib/PublicInbox/GitHTTPBackend.pm index b684988..ebb0850 100644 --- a/lib/PublicInbox/GitHTTPBackend.pm +++ b/lib/PublicInbox/GitHTTPBackend.pm @@ -10,6 +10,7 @@ use Fcntl qw(:seek); use IO::File; use HTTP::Date qw(time2str); use HTTP::Status qw(status_message); +use Plack::Util; use PublicInbox::Qspawn; # n.b. serving "description" and "cloneurl" should be innocuous enough to diff --git a/lib/PublicInbox/Mbox.pm b/lib/PublicInbox/Mbox.pm index 9dad0f6..d2c0954 100644 --- a/lib/PublicInbox/Mbox.pm +++ b/lib/PublicInbox/Mbox.pm @@ -8,7 +8,6 @@ use strict; use warnings; use PublicInbox::MID qw/mid_clean/; use URI::Escape qw/uri_escape_utf8/; -use Plack::Util; require Email::Simple; sub emit1 { diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 054b358..275fed4 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -8,8 +8,6 @@ use strict; use warnings; use URI::Escape qw/uri_escape_utf8/; use Date::Parse qw/str2time/; -use Encode::MIME::Header; -use Plack::Util; use PublicInbox::Hval qw/ascii_html/; use PublicInbox::Linkify; use PublicInbox::MID qw/mid_clean id_compress mid_mime/; -- EW