Deleted unnecessary code

master
Louis 2014-11-14 12:51:35 +01:00
parent 213dad76d4
commit d0b3495124
1 changed files with 0 additions and 4 deletions

View File

@ -481,7 +481,6 @@ sub format_year (@) {
my $mtime = $IkiWiki::pagectime{$p}; my $mtime = $IkiWiki::pagectime{$p};
my @date = localtime($mtime); my @date = localtime($mtime);
my $month = $date[4] + 1; my $month = $date[4] + 1;
my $year = $date[5] + 1900;
$post_months[$month]++; $post_months[$month]++;
} }
@ -628,9 +627,6 @@ sub preprocess (@) {
} }
$params{month} = sprintf("%02d", $params{month}); $params{month} = sprintf("%02d", $params{month});
if (not exists $changed{$params{year}}) {
$changed{$params{year}} = ();
}
$changed{$params{year}}{$params{month}} = 1; $changed{$params{year}}{$params{month}} = 1;
if ($params{type} eq 'month' && $params{year} == $thisyear if ($params{type} eq 'month' && $params{year} == $thisyear