summaryrefslogtreecommitdiff
path: root/av.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-09-29 00:48:19 -0600
committerKarl Williamson <khw@cpan.org>2020-09-29 01:08:31 -0600
commitbd5fa06648085e8c17efd55abeb6424aeeb1018e (patch)
treec6ea50a258097374dbc112ca0569e3be98d4f6b1 /av.c
parente17dadf36f7b4348e59076240c880d0c78b33fa9 (diff)
downloadperl-bd5fa06648085e8c17efd55abeb6424aeeb1018e.tar.gz
Remove Perl_av_top_index
I created this in 87306e0674dfe3af29804b4641347cd5ac9b0521, thinking it was needed to preserve backward compatibility if someone were using this instead of the macro. But it turned out that there never was such a function, it was inlined, and the name was S_av_top_index, so there is no reason to create a new function that no one has ever been able to call. So just remove it, and let all accesses go through the macro
Diffstat (limited to 'av.c')
-rw-r--r--av.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/av.c b/av.c
index ada09cde9a..ad2429f90d 100644
--- a/av.c
+++ b/av.c
@@ -1095,16 +1095,6 @@ Perl_av_nonelem(pTHX_ AV *av, SSize_t ix) {
return sv;
}
-SSize_t
-Perl_av_top_index(pTHX_ AV *av)
-{
- PERL_ARGS_ASSERT_AV_TOP_INDEX;
- assert(SvTYPE(av) == SVt_PVAV);
-
- return AvFILL(av);
-}
-
-
/*
* ex: set ts=8 sts=4 sw=4 et:
*/