about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-08-17 02:41:11 +0000
committerEric Wong <e@80x24.org>2015-08-17 03:13:32 +0000
commitaf83c8489cab440e27d1e5f2f874c0faba133816 (patch)
tree950378c26c90fc6395706b5d60059b1170c4d77d
parent07a768b9de068ddd8f7ea17fe242839c77210510 (diff)
downloadpublic-inbox-af83c8489cab440e27d1e5f2f874c0faba133816.tar.gz
This parameter hasn't been used since
commit 5adf8d639e9b5abd4cbac975d70ddc0fb76541fc
("feed: dead code elimination around dropped endpoints")
-rw-r--r--lib/PublicInbox/WWW.pm10
1 files changed, 4 insertions, 6 deletions
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,
                 }) ]
         ];
 }