diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-12-31 19:12:30 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-12-31 19:12:30 -0800 |
commit | 9912016d365be3d37ae7439a7720746c1e7ca637 (patch) | |
tree | 029adc09bd3cd5b07332979fba4729240b01a6b0 /hv.c | |
parent | 8571a3cc77b8338413df698a2f0c959b543a32e5 (diff) | |
download | perl-9912016d365be3d37ae7439a7720746c1e7ca637.tar.gz |
Remove method cache reset from hv.c:hv_free_ent
It hasn’t been necessary since commit f50383f5. Before that it wasn’t
sufficient. See commit 5743f2a for details.
If a hash element is being deleted, S_hv_delete_common takes care of
this. If a hash is being freed or cleared, hv_undef or hv_clear takes
care of it.
Diffstat (limited to 'hv.c')
-rw-r--r-- | hv.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -1496,8 +1496,6 @@ S_hv_free_ent_ret(pTHX_ HV *hv, register HE *entry) if (!entry) return NULL; val = HeVAL(entry); - if (val && isGV(val) && isGV_with_GP(val) && GvCVu(val) && HvENAME(hv)) - mro_method_changed_in(hv); /* deletion of method from stash */ if (HeKLEN(entry) == HEf_SVKEY) { SvREFCNT_dec(HeKEY_sv(entry)); Safefree(HeKEY_hek(entry)); |