summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-01-26 10:46:12 +0000
committerNicholas Clark <nick@ccl4.org>2008-01-26 10:46:12 +0000
commit5edb5b2abb5db9e134cbde1a4d43fd61fa2b229d (patch)
treed04d3292bdb12858c20ae914b0290e53d8148317 /op.c
parentc0a413d1892b414bcca7420c00e6725079449e3c (diff)
downloadperl-5edb5b2abb5db9e134cbde1a4d43fd61fa2b229d.tar.gz
Eliminate the OP_SETSTATE, which had been disabled by change 4309.
p4raw-id: //depot/perl@33072
Diffstat (limited to 'op.c')
-rw-r--r--op.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/op.c b/op.c
index e5fed9dbb1..b3f765eb10 100644
--- a/op.c
+++ b/op.c
@@ -484,7 +484,7 @@ Perl_op_free(pTHX_ OP *o)
/* COP* is not cleared by op_clear() so that we may track line
* numbers etc even after null() */
- if (type == OP_NEXTSTATE || type == OP_SETSTATE || type == OP_DBSTATE) {
+ if (type == OP_NEXTSTATE || type == OP_DBSTATE) {
cop_free((COP*)o);
}
@@ -901,10 +901,8 @@ Perl_scalarvoid(pTHX_ OP *o)
}
if (o->op_type == OP_NEXTSTATE
- || o->op_type == OP_SETSTATE
|| o->op_type == OP_DBSTATE
|| (o->op_type == OP_NULL && (o->op_targ == OP_NEXTSTATE
- || o->op_targ == OP_SETSTATE
|| o->op_targ == OP_DBSTATE)))
PL_curcop = (COP*)o; /* for warning below */
@@ -7972,7 +7970,6 @@ Perl_peep(pTHX_ register OP *o)
o->op_opt = 1;
PL_op = o;
switch (o->op_type) {
- case OP_SETSTATE:
case OP_NEXTSTATE:
case OP_DBSTATE:
PL_curcop = ((COP*)o); /* for warnings */
@@ -8042,8 +8039,7 @@ Perl_peep(pTHX_ register OP *o)
goto nothin;
case OP_NULL:
if (o->op_targ == OP_NEXTSTATE
- || o->op_targ == OP_DBSTATE
- || o->op_targ == OP_SETSTATE)
+ || o->op_targ == OP_DBSTATE)
{
PL_curcop = ((COP*)o);
}