diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-05-18 17:02:39 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-05-21 18:09:31 -0700 |
commit | bee7c5743fabd49c584c5edbb637c66c5c25ca9a (patch) | |
tree | 690cab29b1118cfd41d79a0f9cd0a71190d68c44 /sv.c | |
parent | 65f57195e2874c2856537d3f9d2b82ace1d47537 (diff) | |
download | perl-bee7c5743fabd49c584c5edbb637c66c5c25ca9a.tar.gz |
sv.c: Don’t fiddle with AMAGIC in sv_bless
Since overloading itself now checks whether caches are up to date, and
since changes to the stash (@ISA, methods) turn the flag on and over-
loading itself turns the flag off when it can, sv_bless no longer
needs to deal with it at all.
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -9518,11 +9518,6 @@ Perl_sv_bless(pTHX_ SV *const sv, HV *const stash) SvUPGRADE(tmpRef, SVt_PVMG); SvSTASH_set(tmpRef, MUTABLE_HV(SvREFCNT_inc_simple(stash))); - if (Gv_AMG(stash)) - SvAMAGIC_on(sv); - else - (void)SvAMAGIC_off(sv); - if(SvSMAGICAL(tmpRef)) if(mg_find(tmpRef, PERL_MAGIC_ext) || mg_find(tmpRef, PERL_MAGIC_uvar)) mg_set(tmpRef); |