locale.t: In-line function to its only call
authorKarl Williamson <public@khwilliamson.com>
Mon, 16 Jan 2012 20:55:09 +0000 (13:55 -0700)
committerKarl Williamson <public@khwilliamson.com>
Sat, 21 Jan 2012 17:02:54 +0000 (10:02 -0700)
This will be needed in future commits

lib/locale.t

index 0312eb3..b8436bf 100644 (file)
@@ -337,10 +337,6 @@ my @Locale;
 my $Locale;
 my @Alnum_;
 
-sub getalnum_ {
-    sort grep /\w/, map { chr } 0..255
-}
-
 sub trylocale {
     my $locale = shift;
     return if grep { $locale eq $_ } @Locale;
@@ -510,7 +506,8 @@ foreach $Locale (@Locale) {
        next;
     }
 
-    @Alnum_ = getalnum_();
+    @Alnum_ = sort grep /\w/, map { chr } 0..255;
+
     debug "# w = ", join("",@Alnum_), "\n";
 
     # Sieve the uppercase and the lowercase.