summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-06 10:01:49 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-06 10:01:49 +0000
commitae29f7f0afee45e66c70e78182c1d7337e125b1f (patch)
tree77cc0fbaa7b019ca1979d85b64b29fcd48a38c87
parenta604c751b769c876d14b294d4befb68cd86e52be (diff)
downloadperl-ae29f7f0afee45e66c70e78182c1d7337e125b1f.tar.gz
SvIsCOW_shared_hash is declared all the time, so use it.
p4raw-id: //depot/perl@24715
-rw-r--r--pp_hot.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 83e018303c..e41d4f2222 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -1665,11 +1665,7 @@ PP(pp_helem)
const U32 lval = PL_op->op_flags & OPf_MOD || LVRET;
const U32 defer = PL_op->op_private & OPpLVAL_DEFER;
SV *sv;
-#ifdef PERL_COPY_ON_WRITE
const U32 hash = (SvIsCOW_shared_hash(keysv)) ? SvUVX(keysv) : 0;
-#else
- const U32 hash = (SvFAKE(keysv) && SvREADONLY(keysv)) ? SvUVX(keysv) : 0;
-#endif
I32 preeminent = 0;
if (SvTYPE(hv) == SVt_PVHV) {