summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-12-20 20:43:16 +0000
committerNicholas Clark <nick@ccl4.org>2007-12-20 20:43:16 +0000
commite50442680d33320e3fd67b1adf0559812a28c98e (patch)
tree4e6db78d25daba7fa0448d97e72874c14d4537c8 /util.c
parentbd649c16768794de1cf07872c7c26d532edb9255 (diff)
downloadperl-e50442680d33320e3fd67b1adf0559812a28c98e.tar.gz
With change 32676 moving the HvSHAREKEYS_on() into Perl_sv_upgrade()
calls to it can be eliminated from the version code. p4raw-id: //depot/perl@32678
Diffstat (limited to 'util.c')
-rw-r--r--util.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/util.c b/util.c
index 62fd7baaa5..173e5d75ff 100644
--- a/util.c
+++ b/util.c
@@ -4176,10 +4176,6 @@ Perl_scan_version(pTHX_ const char *s, SV *rv, bool qv)
SV * const hv = newSVrv(rv, "version"); /* create an SV and upgrade the RV */
(void)sv_upgrade(hv, SVt_PVHV); /* needs to be an HV type */
-#ifndef NODEFAULT_SHAREKEYS
- HvSHAREKEYS_on(hv); /* key-sharing on by default */
-#endif
-
while (isSPACE(*s)) /* leading whitespace is OK */
s++;
@@ -4386,9 +4382,6 @@ Perl_new_version(pTHX_ SV *ver)
/* This will get reblessed later if a derived class*/
SV * const hv = newSVrv(rv, "version");
(void)sv_upgrade(hv, SVt_PVHV); /* needs to be an HV type */
-#ifndef NODEFAULT_SHAREKEYS
- HvSHAREKEYS_on(hv); /* key-sharing on by default */
-#endif
if ( SvROK(ver) )
ver = SvRV(ver);