summaryrefslogtreecommitdiff
path: root/av.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-12-20 19:49:50 +0000
committerNicholas Clark <nick@ccl4.org>2007-12-20 19:49:50 +0000
commitac572bf4fde55cf563ae338dfe4e12b22ebc6d80 (patch)
treefa0c5697d540c2039ef5fdaeea4f6506ca28199b /av.c
parent82c0efa4e83781652347e2d8715e3fc7441c39d4 (diff)
downloadperl-ac572bf4fde55cf563ae338dfe4e12b22ebc6d80.tar.gz
Perl_newAV() can become a mathom by making newAV() a wrapper around
newSV_type() and tweaking Perl_sv_upgrade(). p4raw-id: //depot/perl@32675
Diffstat (limited to 'av.c')
-rw-r--r--av.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/av.c b/av.c
index 0d46117c35..116b7aaf26 100644
--- a/av.c
+++ b/av.c
@@ -355,25 +355,6 @@ Perl_av_store(pTHX_ register AV *av, I32 key, SV *val)
}
/*
-=for apidoc newAV
-
-Creates a new AV. The reference count is set to 1.
-
-=cut
-*/
-
-AV *
-Perl_newAV(pTHX)
-{
- register AV * const av = (AV*)newSV_type(SVt_PVAV);
- /* sv_upgrade does AvREAL_only() */
- AvALLOC(av) = 0;
- AvARRAY(av) = NULL;
- AvMAX(av) = AvFILLp(av) = -1;
- return av;
-}
-
-/*
=for apidoc av_make
Creates a new AV and populates it with a list of SVs. The SVs are copied