From: Joey Hess Date: Sun, 18 Jul 2010 21:47:36 +0000 (-0400) Subject: remove dead case X-Git-Tag: 3.20100722~15 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=eeb8e11d65ba5a8ea4db63beafa3cabebf0a7dc2;p=ikiwiki.git remove dead case --- diff --git a/IkiWiki.pm b/IkiWiki.pm index fa49b2c34..2cf0ad819 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -911,7 +911,7 @@ sub will_render ($$;$) { if (-d _) { foreach my $p (keys %renderedfiles, keys %oldrenderedfiles) { foreach my $f (@{$renderedfiles{$p}}, @{$oldrenderedfiles{$p}}) { - if ($f eq dirname($dest) || dirname($f) eq $dest) { + if (dirname($f) eq $dest) { unlink("$config{destdir}/$f"); rmdir(dirname("$config{destdir}/$f")); }