about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-07-09 03:18:32 +0000
committerEric Wong <e@80x24.org>2016-07-09 03:20:20 +0000
commit2ce1cf89680840c86af136b69372adb3881d7aec (patch)
treecf73867fb2c2b6fe28b18ca10b614868259c4f02 /lib/PublicInbox
parentf0051b3faf6fee449c6796e32a988b9b8ba8fb66 (diff)
downloadpublic-inbox-2ce1cf89680840c86af136b69372adb3881d7aec.tar.gz
We've cleaned up our code in recent days and WwwStream
provides a consistent header for our HTML pages.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/Feed.pm22
1 files changed, 0 insertions, 22 deletions
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 = "<b>$title</b> (<a\nhref=\"new.atom\">Atom feed</a>)";
-        if ($srch) {
-                $top = qq{<form\naction=""><pre>$top} .
-                          qq{ <input\nname=q\ntype=text />} .
-                          qq{<input\ntype=submit\nvalue=search />} .
-                          q{</pre></form><pre>}
-        } else {
-                $top = '<pre>' . $top . "\n";
-        }
-
-        "<html><head><title>$title</title>" .
-                "<link\nrel=alternate\ntitle=\"Atom feed\"\n".
-                "href=\"new.atom\"\ntype=\"application/atom+xml\"/>" .
-                PublicInbox::Hval::STYLE .
-                "</head><body>$top";
-}
-
 sub new_html_footer {
         my ($ctx, $last) = @_;
         my $qp = delete $ctx->{qp} or return;