summaryrefslogtreecommitdiff
path: root/av.c
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2005-10-29 11:36:26 +0000
committerSteve Peters <steve@fisharerojo.org>2005-10-29 11:36:26 +0000
commitb966a8126159ca0abbcdfaef42a884132eb8c589 (patch)
treeaa76127a8951b1479cd90c4ecbde51a5bbd14043 /av.c
parent2674aeec9d4106f3928d3c8b88be7bc9e6f8eff1 (diff)
downloadperl-b966a8126159ca0abbcdfaef42a884132eb8c589.tar.gz
Coverage stats say av_fake() is a mathom too.
p4raw-id: //depot/perl@25872
Diffstat (limited to 'av.c')
-rw-r--r--av.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/av.c b/av.c
index c71dd03408..df35b1a839 100644
--- a/av.c
+++ b/av.c
@@ -398,28 +398,6 @@ Perl_av_make(pTHX_ register I32 size, register SV **strp)
return av;
}
-AV *
-Perl_av_fake(pTHX_ register I32 size, register SV **strp)
-{
- register SV** ary;
- register AV * const av = (AV*)NEWSV(9,0);
-
- sv_upgrade((SV *)av, SVt_PVAV);
- Newx(ary,size+1,SV*);
- AvALLOC(av) = ary;
- Copy(strp,ary,size,SV*);
- AvREIFY_only(av);
- SvPV_set(av, (char*)ary);
- AvFILLp(av) = size - 1;
- AvMAX(av) = size - 1;
- while (size--) {
- assert (*strp);
- SvTEMP_off(*strp);
- strp++;
- }
- return av;
-}
-
/*
=for apidoc av_clear