diff options
author | Eric Wong <e@80x24.org> | 2015-08-20 06:44:39 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-08-20 06:45:21 +0000 |
commit | f045f561f0d6b8b573f38a966365d8898178d242 (patch) | |
tree | f751c2ec96aef5ee9c50b9fbd2e0e2fa833bd91c /lib/PublicInbox/WWW.pm | |
parent | 467f5ad607d304fb5bc85958c36ea3b786ae5d84 (diff) | |
download | public-inbox-f045f561f0d6b8b573f38a966365d8898178d242.tar.gz |
We may not be using subject_path after all.
Diffstat (limited to 'lib/PublicInbox/WWW.pm')
-rw-r--r-- | lib/PublicInbox/WWW.pm | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm index e7c28d74..b0c13486 100644 --- a/lib/PublicInbox/WWW.pm +++ b/lib/PublicInbox/WWW.pm @@ -53,11 +53,6 @@ sub run { } elsif ($path_info =~ m!$LISTNAME_RE/t/(\S+)\.html\z!o) { invalid_list_mid(\%ctx, $1, $2) || get_thread(\%ctx, $cgi); - # subject_path display - } elsif ($path_info =~ m!$LISTNAME_RE/s/(\S+)\.html\z!o) { - my $sp = $2; - invalid_list(\%ctx, $1) || get_subject_path(\%ctx, $cgi, $sp); - } elsif ($path_info =~ m!$LISTNAME_RE/f/\S+\.txt\z!o) { invalid_list_mid(\%ctx, $1, $2) || redirect_mid_txt(\%ctx, $cgi); @@ -202,19 +197,6 @@ sub get_thread { [ $body ] ]; } -# /$LISTNAME/s/$SUBJECT_PATH.html -sub get_subject_path { - my ($ctx, $cgi, $sp) = @_; - $ctx->{subject_path} = $sp; - my $srch = searcher($ctx) or return need_search($ctx); - require PublicInbox::View; - my $foot = footer($ctx); - my $body = PublicInbox::View->subject_path_html($ctx, $foot, $srch) or - return r404(); - [ 200, [ 'Content-Type' => 'text/html; charset=UTF-8' ], - [ $body ] ]; -} - sub self_url { my ($cgi) = @_; ref($cgi) eq 'CGI' ? $cgi->self_url : $cgi->uri->as_string; |