From d0b34951240317642543351ec62f98d3d8df8c0f Mon Sep 17 00:00:00 2001 From: Louis Date: Fri, 14 Nov 2014 12:51:35 +0100 Subject: [PATCH] Deleted unnecessary code --- IkiWiki/Plugin/calendar.pm | 4 ---- 1 file changed, 4 deletions(-) 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