From bd5fa06648085e8c17efd55abeb6424aeeb1018e Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Tue, 29 Sep 2020 00:48:19 -0600 Subject: 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 --- av.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'av.c') 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: */ -- cgit v1.2.1