summaryrefslogtreecommitdiff
path: root/regen
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2012-02-27 18:33:08 +0100
committerNicholas Clark <nick@ccl4.org>2012-03-19 10:21:54 +0100
commitd9ee6ccb5fa3d256d9d020e332ee8ba52706c2ae (patch)
treeb7b6a4dd97ad5025d583d5d4c9d9bafbc90aecfb /regen
parentd37572645496516ed45536ef36684ba890c8f09b (diff)
downloadperl-d9ee6ccb5fa3d256d9d020e332ee8ba52706c2ae.tar.gz
In feature.pm, inline normalise_hints() into __common(), its only caller.
normalise_hints() was added after 5.14.0 was released, so has never been in a stable release. Hence it's totally safe to kill it.
Diffstat (limited to 'regen')
-rwxr-xr-xregen/feature.pl18
1 files changed, 7 insertions, 11 deletions
diff --git a/regen/feature.pl b/regen/feature.pl
index 79aa471687..7f59847a9d 100755
--- a/regen/feature.pl
+++ b/regen/feature.pl
@@ -589,16 +589,6 @@ sub current_bundle {
return $feature_bundle{$hint_bundles[$bundle_number >> $hint_shift]};
}
-sub normalise_hints {
- # Delete any keys that may be left over from last time.
- delete @^H{ values(%feature) };
- $^H |= $hint_mask;
- for (@{+shift}) {
- $^H{$feature{$_}} = 1;
- $^H |= $hint_uni8bit if $_ eq 'unicode_strings';
- }
-}
-
sub import {
my $class = shift;
@@ -626,7 +616,13 @@ sub __common {
my $import = shift;
if (my $features = current_bundle) {
# Features are enabled implicitly via bundle hints.
- normalise_hints $features;
+ # Delete any keys that may be left over from last time.
+ delete @^H{ values(%feature) };
+ $^H |= $hint_mask;
+ for (@$features) {
+ $^H{$feature{$_}} = 1;
+ $^H |= $hint_uni8bit if $_ eq 'unicode_strings';
+ }
}
while (@_) {
my $name = shift;