From 7e0153adf35983cb004f6980238eef519ad2f460 Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Fri, 12 May 2023 11:10:02 +0200 Subject: [PATCH] MT#57419 defined but not used (entropy_coding.c) We should deprecate unused variables and functions: entropy_coding.c:95:14: warning: 'log2_Q10_B' defined but not used [-Wunused-function] 95 | static short log2_Q10_B( int x ) | ^~~~~~~~~~ entropy_coding.c:78:23: warning: 'stepwise' defined but not used [-Wunused-function] 78 | static WebRtc_UWord32 stepwise(WebRtc_Word32 dinQ10) { | ^~~~~~~~ entropy_coding.c:72:28: warning: 'lbcnQ10' defined but not used [-Wunused-const-variable=] 72 | static const WebRtc_Word32 lbcnQ10 = -402874; | ^~~~~~~ entropy_coding.c:71:28: warning: 'ccnQ10' defined but not used [-Wunused-const-variable=] 71 | static const WebRtc_Word32 ccnQ10 = 722631; | ^~~~~~ entropy_coding.c:70:28: warning: 'bcnQ10' defined but not used [-Wunused-const-variable=] 70 | static const WebRtc_Word32 bcnQ10 = -581224; | ^~~~~~ entropy_coding.c:69:28: warning: 'acnQ10' defined but not used [-Wunused-const-variable=] 69 | static const WebRtc_Word32 acnQ10 = 426; | ^~~~~~ Change-Id: Ie45a2685c445eb5c7c5bfc75d7bda9ba2ba26a50 --- core/plug-in/isac/libisac/entropy_coding.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/plug-in/isac/libisac/entropy_coding.c b/core/plug-in/isac/libisac/entropy_coding.c index e0b1ef2c..ad1607f1 100644 --- a/core/plug-in/isac/libisac/entropy_coding.c +++ b/core/plug-in/isac/libisac/entropy_coding.c @@ -50,7 +50,6 @@ static const WebRtc_Word32 kRPointsQ10[100] = { 13175, 13258, 13323, 13290, 13296, 13335, 13113, 13255, 13347, 13355, 13298, 13247, 13313, 13155, 13267, 13313, 13374, 13446, 13525, 13609}; - /* cdf array for encoder bandwidth (12 vs 16 kHz) indicator */ static const WebRtc_UWord16 kOneBitEqualProbCdf[3] = { 0, 32768, 65535 }; @@ -65,11 +64,6 @@ static const WebRtc_UWord16 kOneBitEqualProbInitIndex[1] = {1}; /* coefficients for the stepwise rate estimation */ - -static const WebRtc_Word32 acnQ10 = 426; -static const WebRtc_Word32 bcnQ10 = -581224; -static const WebRtc_Word32 ccnQ10 = 722631; -static const WebRtc_Word32 lbcnQ10 = -402874; #define DPMIN_Q10 -10240 // -10.00 in Q10 #define DPMAX_Q10 10240 // 10.00 in Q10 #define MINBITS_Q10 10240 /* 10.0 in Q10 */