You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by wa...@apache.org on 2011/08/24 06:17:00 UTC

svn commit: r1160974 - /incubator/ooo/site/trunk/lib/view.pm

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