summaryrefslogtreecommitdiff
path: root/universal.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 /universal.c
parent60121127fb9d33a8ca4ab1e213b635fe63c8fa8c (diff)
downloadperl-b7adcee4dcd174053afc53e0295922072726eaa4.tar.gz
Remove PERL_OLD_COPY_ON_WRITE
Diffstat (limited to 'universal.c')
-rw-r--r--universal.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/universal.c b/universal.c
index 58b010b4d5..9b34df9753 100644
--- a/universal.c
+++ b/universal.c
@@ -563,9 +563,6 @@ XS(XS_Internals_SvREADONLY) /* This is dangerous stuff. */
}
else if (items == 2) {
if (SvTRUE(ST(1))) {
-#ifdef PERL_OLD_COPY_ON_WRITE
- if (SvIsCOW(sv)) sv_force_normal(sv);
-#endif
SvFLAGS(sv) |= SVf_READONLY;
XSRETURN_YES;
}
@@ -592,9 +589,6 @@ XS(XS_constant__make_const) /* This is dangerous stuff. */
sv = SvRV(svz);
-#ifdef PERL_OLD_COPY_ON_WRITE
- if (SvIsCOW(sv)) sv_force_normal(sv);
-#endif
SvREADONLY_on(sv);
if (SvTYPE(sv) == SVt_PVAV && AvFILLp(sv) != -1) {
/* for constant.pm; nobody else should be calling this