summaryrefslogtreecommitdiff
path: root/win32/FindExt.pm
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2013-06-14 17:10:31 +0200
committerNicholas Clark <nick@ccl4.org>2013-07-02 15:33:27 +0200
commit396a7feb2837f72136b02f8c184d6e90b04661bf (patch)
treecbaeb2113aa205a850ebc62553b6a37c5d4a32b4 /win32/FindExt.pm
parent08b889303304849ba3ce08a3a08d913862c17156 (diff)
downloadperl-396a7feb2837f72136b02f8c184d6e90b04661bf.tar.gz
In FindExt, eliminate _ext_ne() and make extensions() a simple subroutine.
Previously _ext_ne() was a generator function, and extensions() and known_extensions() were generated by it. Now that known_extensions() has a different implementation, extensions() was the last user of _ext_ne(), so there's no saving by keeping the complexity.
Diffstat (limited to 'win32/FindExt.pm')
-rw-r--r--win32/FindExt.pm9
1 files changed, 2 insertions, 7 deletions
diff --git a/win32/FindExt.pm b/win32/FindExt.pm
index 41065d244d..ea9e5571e9 100644
--- a/win32/FindExt.pm
+++ b/win32/FindExt.pm
@@ -84,15 +84,10 @@ sub _ext_eq {
*static_ext = _ext_eq('static');
*nonxs_ext = _ext_eq('nonxs');
-sub _ext_ne {
- my $key = shift;
- sub {
- sort grep $ext{$_} ne $key, keys %ext;
- }
+sub extensions {
+ sort grep $ext{$_} ne 'known', keys %ext;
}
-*extensions = _ext_ne('known');
-
sub known_extensions {
sort keys %ext;
}