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 AB02A20711 for ; Sat, 9 Jul 2016 03:18:42 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 3/6] feed: remove dead code and unneeded use Date: Sat, 9 Jul 2016 03:18:32 +0000 Message-Id: <20160709031835.21005-4-e@80x24.org> In-Reply-To: <20160709031835.21005-1-e@80x24.org> References: <20160709031835.21005-1-e@80x24.org> List-Id: We've cleaned up our code in recent days and WwwStream provides a consistent header for our HTML pages. --- lib/PublicInbox/Feed.pm | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index 3b0ae42..a697a43 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -8,7 +8,6 @@ use warnings; use Email::MIME; use Date::Parse qw(strptime); use PublicInbox::Hval qw/ascii_html/; -use PublicInbox::Git; use PublicInbox::View; use PublicInbox::MID qw/mid_clean mid2path/; use PublicInbox::Address; @@ -150,27 +149,6 @@ sub emit_atom_thread { end_feed($fh); } -sub _html_index_top { - my ($feed_opts, $srch) = @_; - - my $title = ascii_html($feed_opts->{description} || ''); - my $top = "$title (Atom feed)"; - if ($srch) { - $top = qq{
$top} .
-			  qq{ } .
-			  qq{} .
-			  q{
}
-	} else {
-		$top = '
' . $top . "\n";
-	}
-
-	"$title" .
-		"" .
-		PublicInbox::Hval::STYLE .
-		"$top";
-}
-
 sub new_html_footer {
 	my ($ctx, $last) = @_;
 	my $qp = delete $ctx->{qp} or return;
-- 
EW