From af83c8489cab440e27d1e5f2f874c0faba133816 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 17 Aug 2015 02:41:11 +0000 Subject: WWW: eliminate "top" parameter for feeds This parameter hasn't been used since commit 5adf8d639e9b5abd4cbac975d70ddc0fb76541fc ("feed: dead code elimination around dropped endpoints") --- lib/PublicInbox/WWW.pm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'lib/PublicInbox/WWW.pm') diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm index 50215095..7cbfa355 100644 --- a/lib/PublicInbox/WWW.pm +++ b/lib/PublicInbox/WWW.pm @@ -35,9 +35,9 @@ sub run { } elsif ($path_info =~ m!$LISTNAME_RE\z!o) { invalid_list(\%ctx, $1) || redirect_list_index(\%ctx, $cgi); } elsif ($path_info =~ m!$LISTNAME_RE(?:/|/index\.html)?\z!o) { - invalid_list(\%ctx, $1) || get_index(\%ctx, $cgi, 0); + invalid_list(\%ctx, $1) || get_index(\%ctx, $cgi); } elsif ($path_info =~ m!$LISTNAME_RE/atom\.xml\z!o) { - invalid_list(\%ctx, $1) || get_atom(\%ctx, $cgi, 0); + invalid_list(\%ctx, $1) || get_atom(\%ctx, $cgi); # single-message pages } elsif ($path_info =~ m!$LISTNAME_RE/m/(\S+)\.txt\z!o) { @@ -109,7 +109,7 @@ sub invalid_list_mid { # /$LISTNAME/atom.xml -> Atom feed, includes replies sub get_atom { - my ($ctx, $cgi, $top) = @_; + my ($ctx, $cgi) = @_; require PublicInbox::Feed; [ 200, [ 'Content-Type' => 'application/xml' ], [ PublicInbox::Feed->generate({ @@ -117,14 +117,13 @@ sub get_atom { listname => $ctx->{listname}, pi_config => $pi_config, cgi => $cgi, - top => $top, }) ] ]; } # /$LISTNAME/?r=$GIT_COMMIT -> HTML only sub get_index { - my ($ctx, $cgi, $top) = @_; + my ($ctx, $cgi) = @_; require PublicInbox::Feed; my $srch = searcher($ctx); [ 200, [ 'Content-Type' => 'text/html; charset=UTF-8' ], @@ -135,7 +134,6 @@ sub get_index { pi_config => $pi_config, cgi => $cgi, footer => footer($ctx), - top => $top, }) ] ]; } -- cgit v1.2.3-24-ge0c7