From 2ce1cf89680840c86af136b69372adb3881d7aec Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 9 Jul 2016 03:18:32 +0000 Subject: feed: remove dead code and unneeded use 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(-) (limited to 'lib/PublicInbox/Feed.pm') diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index 3b0ae422..a697a432 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;
-- 
cgit v1.2.3-24-ge0c7