summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2015-06-28 18:26:42 -0700
committerFather Chrysostomos <sprout@cpan.org>2015-06-29 08:20:27 -0700
commitb7adcee4dcd174053afc53e0295922072726eaa4 (patch)
tree716aa0d102a90980ddde10eb2da0c6e29122e2cc /op.c
parent60121127fb9d33a8ca4ab1e213b635fe63c8fa8c (diff)
downloadperl-b7adcee4dcd174053afc53e0295922072726eaa4.tar.gz
Remove PERL_OLD_COPY_ON_WRITE
Diffstat (limited to 'op.c')
-rw-r--r--op.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/op.c b/op.c
index d78a46e037..c50da69853 100644
--- a/op.c
+++ b/op.c
@@ -11949,9 +11949,7 @@ Perl_ck_svconst(pTHX_ OP *o)
SV * const sv = cSVOPo->op_sv;
PERL_ARGS_ASSERT_CK_SVCONST;
PERL_UNUSED_CONTEXT;
-#ifdef PERL_OLD_COPY_ON_WRITE
- if (SvIsCOW(sv)) sv_force_normal(sv);
-#elif defined(PERL_NEW_COPY_ON_WRITE)
+#ifdef PERL_NEW_COPY_ON_WRITE
/* Since the read-only flag may be used to protect a string buffer, we
cannot do copy-on-write with existing read-only scalars that are not
already copy-on-write scalars. To allow $_ = "hello" to do COW with