aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorLouis <spalax@gresille.org>2014-11-14 12:51:35 +0100
committerLouis <spalax@gresille.org>2014-11-14 12:52:51 +0100
commitd0b34951240317642543351ec62f98d3d8df8c0f (patch)
tree958eb88e818726faa0add7efc27346dc020c138e /IkiWiki
parent213dad76d47bab9db8e44d6e20c8371960375e77 (diff)
downloadikiwiki-d0b34951240317642543351ec62f98d3d8df8c0f.tar
ikiwiki-d0b34951240317642543351ec62f98d3d8df8c0f.tar.gz
Deleted unnecessary code
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/calendar.pm4
1 files changed, 0 insertions, 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