]> Sergey Matveev's repositories - public-inbox.git/commitdiff
www: remove footer_html support
authorEric Wong <e@80x24.org>
Sat, 28 May 2016 01:57:12 +0000 (01:57 +0000)
committerEric Wong <e@80x24.org>
Sat, 28 May 2016 01:57:37 +0000 (01:57 +0000)
I haven't used it in a while and the existing "description"
is probably good enough.

If we support it again, it should be plain-text + auto-linkified
for ease-of-maintenance and consistency.

lib/PublicInbox/Inbox.pm
lib/PublicInbox/WWW.pm

index 4bcab96f61469df0ff22a806f64741e12d1d281d..c07aaa9f7056509c16008ea1e301ba74e647a7d3 100644 (file)
@@ -64,16 +64,6 @@ sub cloneurl {
        $self->{cloneurl} = \@url;
 }
 
-# TODO: can we remove this?
-sub footer_html {
-       my ($self) = @_;
-       my $footer = $self->{footer};
-       return $footer if defined $footer;
-       $footer = try_cat("$self->{mainrepo}/public-inbox/footer.html");
-       chomp $footer;
-       $self->{footer} = $footer;
-}
-
 sub base_url {
        my ($self, $prq) = @_; # Plack::Request
        if (defined $prq) {
index 5b4d6c185722bdeb98f408acabb258687b40123b..e8f1fbf0d49007fd2f1466b7511f23a9d5dc9bfa 100644 (file)
@@ -252,8 +252,6 @@ sub footer {
        my ($ctx) = @_;
        return '' unless $ctx;
        my $obj = $ctx->{-inbox} or return '';
-       my $footer = $obj->footer_html;
-       return $ctx->{footer} = $footer if $footer;
 
        # auto-generate a footer
        chomp(my $desc = $obj->description);