summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-12-20 20:23:45 +0000
committerNicholas Clark <nick@ccl4.org>2007-12-20 20:23:45 +0000
commit78ac7dd9596fbc525d458adec628f7d991dfe43a (patch)
tree06c246ec59c74eb07d3f3c531e209c7ff32ed165 /hv.c
parentac572bf4fde55cf563ae338dfe4e12b22ebc6d80 (diff)
downloadperl-78ac7dd9596fbc525d458adec628f7d991dfe43a.tar.gz
Similiarly Perl_newHV() can become a mathom by making newHV() a
wrapper around newSV_type() and tweaking Perl_sv_upgrade(). p4raw-id: //depot/perl@32676
Diffstat (limited to 'hv.c')
-rw-r--r--hv.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/hv.c b/hv.c
index c8279d87be..9523fb0b28 100644
--- a/hv.c
+++ b/hv.c
@@ -1305,30 +1305,6 @@ Perl_hv_ksplit(pTHX_ HV *hv, IV newmax)
}
}
-/*
-=for apidoc newHV
-
-Creates a new HV. The reference count is set to 1.
-
-=cut
-*/
-
-HV *
-Perl_newHV(pTHX)
-{
- register XPVHV* xhv;
- HV * const hv = (HV*)newSV_type(SVt_PVHV);
- xhv = (XPVHV*)SvANY(hv);
- assert(!SvOK(hv));
-#ifndef NODEFAULT_SHAREKEYS
- HvSHAREKEYS_on(hv); /* key-sharing on by default */
-#endif
-
- xhv->xhv_max = 7; /* HvMAX(hv) = 7 (start with 8 buckets) */
- xhv->xhv_fill = 0; /* HvFILL(hv) = 0 */
- return hv;
-}
-
HV *
Perl_newHVhv(pTHX_ HV *ohv)
{