diff options
author | Stefan Beller <stefanbeller@googlemail.com> | 2013-10-09 00:01:36 +0200 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-10-23 16:18:32 -0400 |
commit | 2891d852a38b3acb1810fad9f26ba7e0b181cfb2 (patch) | |
tree | d3e9049ba04f9c69b60f80f7da5e5d01a88ba745 /silk/float | |
parent | d6b56793d84490e78c91afcb3af96071094b7292 (diff) | |
download | opus-2891d852a38b3acb1810fad9f26ba7e0b181cfb2.tar.gz |
Remove dead code
The compiler warned:
silk/float/pitch_analysis_core_FLP.c: In function 'silk_P_Ana_calc_corr_st3':
silk/float/pitch_analysis_core_FLP.c:499:36: warning: variable 'basis_ptr' set but not used [-Wunused-but-set-variable]
const silk_float *target_ptr, *basis_ptr;
This means we can safely remove it.
Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
Diffstat (limited to 'silk/float')
-rw-r--r-- | silk/float/pitch_analysis_core_FLP.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/silk/float/pitch_analysis_core_FLP.c b/silk/float/pitch_analysis_core_FLP.c index 605ea25f..b6bafe81 100644 --- a/silk/float/pitch_analysis_core_FLP.c +++ b/silk/float/pitch_analysis_core_FLP.c @@ -496,7 +496,7 @@ static void silk_P_Ana_calc_corr_st3( opus_int complexity /* I Complexity setting */ ) { - const silk_float *target_ptr, *basis_ptr; + const silk_float *target_ptr; opus_int i, j, k, lag_counter, lag_low, lag_high; opus_int nb_cbk_search, delta, idx, cbk_size; silk_float scratch_mem[ SCRATCH_SIZE ]; @@ -529,7 +529,6 @@ static void silk_P_Ana_calc_corr_st3( silk_assert(lag_high-lag_low+1 <= SCRATCH_SIZE); celt_pitch_xcorr( target_ptr, target_ptr - start_lag - lag_high, xcorr, sf_length, lag_high - lag_low + 1 ); for( j = lag_low; j <= lag_high; j++ ) { - basis_ptr = target_ptr - ( start_lag + j ); silk_assert( lag_counter < SCRATCH_SIZE ); scratch_mem[ lag_counter ] = xcorr[ lag_high - j ]; lag_counter++; |