]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Deleted unnecessary code
authorLouis <spalax@gresille.org>
Fri, 14 Nov 2014 11:51:35 +0000 (12:51 +0100)
committerLouis <spalax@gresille.org>
Fri, 14 Nov 2014 11:52:51 +0000 (12:52 +0100)
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