diff options
author | Father Chrysostomos <sprout@cpan.org> | 2014-09-17 20:23:29 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-09-17 23:39:28 -0700 |
commit | b561f196294beb142a9daf3d93f7d3f067e07fe7 (patch) | |
tree | 4bdbefe8ec50c9a55f96b0c7629353adcdfb425d /pad.c | |
parent | 13381c391de0642003d3624c1d0fe8546509d142 (diff) | |
download | perl-b561f196294beb142a9daf3d93f7d3f067e07fe7.tar.gz |
pad.c:pad_tidy: Remove redundant IS_PADGV
GVs are stored in the pads in two code paths, newPADOP when called by
newGVOP, and ck_rvconst. Both of those now set the pad name to
&PL_sv_no, as of c9859fbde1 and c2bad63bb3. So GVs are now excluded
from the check a few lines below, just like constants.
Diffstat (limited to 'pad.c')
-rw-r--r-- | pad.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1778,8 +1778,7 @@ Perl_pad_tidy(pTHX_ padtidy_type type) * pad are anonymous subs, constants and GVs. * The rest are created anew during cloning. */ - if (!PL_curpad[ix] || SvIMMORTAL(PL_curpad[ix]) - || IS_PADGV(PL_curpad[ix])) + if (!PL_curpad[ix] || SvIMMORTAL(PL_curpad[ix])) continue; namesv = namep[ix]; if (!(PadnamePV(namesv) && |