remove explicit addition of dependencies for displayed pages

that hack is not needed, thanks to pagespec influences calculation
master
Joey Hess 2009-10-07 21:57:31 -04:00
parent 5f9860e65c
commit 957ded9d64
3 changed files with 0 additions and 16 deletions

View File

@ -213,11 +213,6 @@ EOF
# Add dependencies to update the calendar whenever pages
# matching the pagespec are added or removed.
add_depends($params{page}, $params{pages}, presence => 1);
# Explicitly add all currently linked pages as dependencies, so
# that if they are removed, the calendar will be sure to be updated.
foreach my $p (@list) {
add_depends($params{page}, $p, presence => 1);
}
return $calendar;
}

View File

@ -247,12 +247,6 @@ sub preprocess_inline (@) {
@list=@list[0..$params{show} - 1];
}
# Explicitly add all currently displayed pages as dependencies, so
# that if they are removed, the inline will be sure to be updated.
foreach my $p ($#list >= $#feedlist ? @list : @feedlist) {
add_depends($params{page}, $p, presence => $quick);
}
if ($feeds && exists $params{feedpages}) {
@feedlist=pagespec_match_list(\@feedlist, $params{feedpages}, location => $params{page});
}

View File

@ -71,11 +71,6 @@ sub preprocess (@) {
# cases, when its content changes, if show= is specified), so
# register a dependency.
add_depends($params{page}, $params{pages}, presence => ! exists $params{show});
# Explicitly add all currently shown pages, to detect when pages
# are removed.
foreach my $item (keys %mapitems) {
add_depends($params{page}, $item, presence => ! exists $params{show});
}
# Create the map.
my $parent="";