Deleted unnecessary code
[ikiwiki.git] / IkiWiki / Plugin / calendar.pm
index 83d65d0c3d07c05d08c959b4f5ab4e3674d97d2b..9639f6d08ea360fcf0d1865bb8277beb69dfb167 100644 (file)
@@ -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