From: Louis Date: Fri, 14 Nov 2014 11:51:35 +0000 (+0100) Subject: Deleted unnecessary code X-Git-Tag: 3.20150107~77^2~1 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/d0b34951240317642543351ec62f98d3d8df8c0f Deleted unnecessary code --- diff --git a/IkiWiki/Plugin/calendar.pm b/IkiWiki/Plugin/calendar.pm index 83d65d0c3..9639f6d08 100644 --- a/IkiWiki/Plugin/calendar.pm +++ b/IkiWiki/Plugin/calendar.pm @@ -481,7 +481,6 @@ sub format_year (@) { my $mtime = $IkiWiki::pagectime{$p}; my @date = localtime($mtime); my $month = $date[4] + 1; - my $year = $date[5] + 1900; $post_months[$month]++; } @@ -628,9 +627,6 @@ sub preprocess (@) { } $params{month} = sprintf("%02d", $params{month}); - if (not exists $changed{$params{year}}) { - $changed{$params{year}} = (); - } $changed{$params{year}}{$params{month}} = 1; if ($params{type} eq 'month' && $params{year} == $thisyear