summaryrefslogtreecommitdiff
path: root/proto.h
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 /proto.h
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 'proto.h')
-rw-r--r--proto.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/proto.h b/proto.h
index c4490fc46e..2da1a07761 100644
--- a/proto.h
+++ b/proto.h
@@ -291,10 +291,9 @@ PERL_CALLCONV SV** Perl_av_store(pTHX_ AV *av, SSize_t key, SV *val);
__attribute__warn_unused_result__; */
#define PERL_ARGS_ASSERT_AV_TINDEX
-PERL_CALLCONV SSize_t Perl_av_top_index(pTHX_ AV *av)
- __attribute__warn_unused_result__;
-#define PERL_ARGS_ASSERT_AV_TOP_INDEX \
- assert(av)
+/* PERL_CALLCONV SSize_t av_top_index(pTHX_ AV *av)
+ __attribute__warn_unused_result__; */
+#define PERL_ARGS_ASSERT_AV_TOP_INDEX
PERL_CALLCONV void Perl_av_undef(pTHX_ AV *av);
#define PERL_ARGS_ASSERT_AV_UNDEF \