diff options
author | Joey Hess <joey@kitenet.net> | 2010-04-20 14:08:29 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-04-20 14:08:29 -0400 |
commit | cff3937b681a6c2505eb52b43b2e3e7086f99c45 (patch) | |
tree | 966956688610dd66be8cd2ca1424bb724e131c2d /IkiWiki.pm | |
parent | 6d063a6698ad72476d9243956b0f13ec33a09dbd (diff) | |
download | ikiwiki-cff3937b681a6c2505eb52b43b2e3e7086f99c45.tar ikiwiki-cff3937b681a6c2505eb52b43b2e3e7086f99c45.tar.gz |
remove 2 argument form of file_pruned
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index a5f83ac7a..6d3b6c606 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -1843,15 +1843,8 @@ sub deptype (@) { } my $file_prune_regexp; -sub file_pruned ($;$) { +sub file_pruned ($) { my $file=shift; - if (@_) { - require File::Spec; - $file=File::Spec->canonpath($file); - my $base=File::Spec->canonpath(shift); - return if $file eq $base; - $file =~ s#^\Q$base\E/+##; - } if (defined $config{include} && length $config{include}) { return 0 if $file =~ m/$config{include}/; |