incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject svn commit: r1160974 - /incubator/ooo/site/trunk/lib/view.pm
Date Wed, 24 Aug 2011 04:17:00 GMT
Author: wave
Date: Wed Aug 24 04:17:00 2011
New Revision: 1160974

URL: http://svn.apache.org/viewvc?rev=1160974&view=rev
Log:
saw that joes did this to clear up the buildbot for odf toolkit

Modified:
    incubator/ooo/site/trunk/lib/view.pm

Modified: incubator/ooo/site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/incubator/ooo/site/trunk/lib/view.pm?rev=1160974&r1=1160973&r2=1160974&view=diff
==============================================================================
--- incubator/ooo/site/trunk/lib/view.pm (original)
+++ incubator/ooo/site/trunk/lib/view.pm Wed Aug 24 04:17:00 2011
@@ -57,32 +57,6 @@ sub single_narrative {
     return Template($template)->render(\%args), html => \%args;
 }
 
-# Has the same behavior as the above for foo.page/bar.txt
-# files, parsing them into a bar variable for the template.
-# Otherwise presumes the template is the path.
-
-sub news_page {
-    my %args = @_;
-    my $template = "content$args{path}";
-    $args{breadcrumbs} = breadcrumbs($args{path});
-
-    my $page_path = $template;
-    $page_path =~ s/\.[^.]+$/.page/;
-    if (-d $page_path) {
-        for my $f (grep -f, glob "$page_path/*.mdtext") {
-            $f =~ m!/([^/]+)\.mdtext$! or die "Bad filename: $f\n";
-            $args{$1} = {};
-            read_text_file $f, $args{$1};
-        }
-    }
-
-    for ((fetch_doap_url_list())[0..2]) {
-        push @{$args{projects}}, parse_doap($_);
-    }
-
-    return Template($template)->render(\%args), html => \%args;
-}
-
 # This view is used to wrap html.  It takes a
 # 'template' argument and a 'path' argument.
 # Assuming the path ends in foo.html, any files



Mime
View raw message