summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-04-06 21:53:46 +0000
committerNicholas Clark <nick@ccl4.org>2007-04-06 21:53:46 +0000
commitad639bfb68f3fce4864d833950ed2ff9dd1cb28d (patch)
tree0f94b8b59215fe8d987ae34bd2793fcc3961cadd /op.c
parentbfd0ff222f043bea86c0b0e7700eeab47f675d46 (diff)
downloadperl-ad639bfb68f3fce4864d833950ed2ff9dd1cb28d.tar.gz
Only append ?? match ops to the list used by reset. This saves memory
and time. p4raw-id: //depot/perl@30857
Diffstat (limited to 'op.c')
-rw-r--r--op.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/op.c b/op.c
index e0be444912..56b9d9fd17 100644
--- a/op.c
+++ b/op.c
@@ -3326,20 +3326,6 @@ Perl_newPMOP(pTHX_ I32 type, I32 flags)
}
#endif
- /* append to pm list */
- if (type != OP_TRANS && PL_curstash) {
- MAGIC *mg = mg_find((SV*)PL_curstash, PERL_MAGIC_symtab);
- U32 elements;
- if (!mg) {
- mg = sv_magicext((SV*)PL_curstash, 0, PERL_MAGIC_symtab, 0, 0, 0);
- }
- elements = mg->mg_len / sizeof(PMOP**);
- Renewc(mg->mg_ptr, elements + 1, PMOP*, char);
- ((PMOP**)mg->mg_ptr) [elements++] = pmop;
- mg->mg_len = elements * sizeof(PMOP**);
- PmopSTASH_set(pmop,PL_curstash);
- }
-
return CHECKOP(type, pmop);
}