From 8701b4e95e040a072e009a21afc3c05883f87c64 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 28 Apr 2025 11:34:33 +0200 Subject: [PATCH 5/5] avcodec/apv_entropy: Remove ff_apv_read_vlc() There is no need for testing-only code to exist in release builds, developers can add testing/debug code just fine locally if they need it. Signed-off-by: Andreas Rheinhardt --- libavcodec/apv_decode.h | 9 --------- libavcodec/apv_entropy.c | 6 ------ 2 files changed, 15 deletions(-) diff --git a/libavcodec/apv_decode.h b/libavcodec/apv_decode.h index 34c6176ea0..4749116e6b 100644 --- a/libavcodec/apv_decode.h +++ b/libavcodec/apv_decode.h @@ -68,13 +68,4 @@ int ff_apv_entropy_decode_block(int16_t *coeff, GetBitContext *gbc, APVEntropyState *state); -/** - * Read a single APV VLC code. - * - * This entrypoint is exposed for testing. - */ -unsigned int ff_apv_read_vlc(GetBitContext *gbc, int k_param, - const APVVLCLUT *lut); - - #endif /* AVCODEC_APV_DECODE_H */ diff --git a/libavcodec/apv_entropy.c b/libavcodec/apv_entropy.c index 00e0b4fbdf..0cce6b0847 100644 --- a/libavcodec/apv_entropy.c +++ b/libavcodec/apv_entropy.c @@ -95,12 +95,6 @@ static unsigned int apv_read_vlc(GetBitContext *gbc, int k_param, } } -unsigned int ff_apv_read_vlc(GetBitContext *gbc, int k_param, - const APVVLCLUT *lut) -{ - return apv_read_vlc(gbc, k_param, lut); -} - int ff_apv_entropy_decode_block(int16_t *coeff, GetBitContext *gbc, APVEntropyState *state) -- 2.45.2