From fbd9085d679240e60bad03926cf8538e726fac89 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 13 May 2021 16:49:49 +0200 Subject: [PATCH] btstack_cvsd_plc: remove unused function --- src/classic/btstack_cvsd_plc.c | 14 ++------------ src/classic/btstack_cvsd_plc.h | 1 - 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/classic/btstack_cvsd_plc.c b/src/classic/btstack_cvsd_plc.c index f458c9f3a..5fa34a94a 100644 --- a/src/classic/btstack_cvsd_plc.c +++ b/src/classic/btstack_cvsd_plc.c @@ -53,22 +53,12 @@ #include "btstack_cvsd_plc.h" #include "btstack_debug.h" -// static float rcos[CVSD_OLAL] = { -// 0.99148655f,0.96623611f,0.92510857f,0.86950446f, -// 0.80131732f,0.72286918f,0.63683150f,0.54613418f, -// 0.45386582f,0.36316850f,0.27713082f,0.19868268f, -// 0.13049554f,0.07489143f,0.03376389f,0.00851345f}; - static float rcos[CVSD_OLAL] = { 0.99148655f,0.92510857f, - 0.80131732f,0.63683150f, - 0.45386582f,0.27713082f, + 0.80131732f,0.63683150f, + 0.45386582f,0.27713082f, 0.13049554f,0.03376389f}; -float btstack_cvsd_plc_rcos(int index){ - if (index > CVSD_OLAL) return 0; - return rcos[index]; -} // taken from http://www.codeproject.com/Articles/69941/Best-Square-Root-Method-Algorithm-Function-Precisi // Algorithm: Babylonian Method + some manipulations on IEEE 32 bit floating point representation static float sqrt3(const float x){ diff --git a/src/classic/btstack_cvsd_plc.h b/src/classic/btstack_cvsd_plc.h index 746856ef7..035bca7ba 100644 --- a/src/classic/btstack_cvsd_plc.h +++ b/src/classic/btstack_cvsd_plc.h @@ -87,7 +87,6 @@ void btstack_cvsd_dump_statistics(btstack_cvsd_plc_state_t * state); int btstack_cvsd_plc_pattern_match(BTSTACK_CVSD_PLC_SAMPLE_FORMAT *y); float btstack_cvsd_plc_amplitude_match(btstack_cvsd_plc_state_t *plc_state, uint16_t num_samples, BTSTACK_CVSD_PLC_SAMPLE_FORMAT *y, BTSTACK_CVSD_PLC_SAMPLE_FORMAT bestmatch); BTSTACK_CVSD_PLC_SAMPLE_FORMAT btstack_cvsd_plc_crop_sample(float val); -float btstack_cvsd_plc_rcos(int index); #ifdef OCTAVE_OUTPUT void btstack_cvsd_plc_octave_set_base_name(const char * name);