summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-12-31 19:12:30 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-12-31 19:12:30 -0800
commit9912016d365be3d37ae7439a7720746c1e7ca637 (patch)
tree029adc09bd3cd5b07332979fba4729240b01a6b0 /hv.c
parent8571a3cc77b8338413df698a2f0c959b543a32e5 (diff)
downloadperl-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.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/hv.c b/hv.c
index 967ca4a730..48f21e9877 100644
--- a/hv.c
+++ b/hv.c
@@ -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));