Skip to content

Commit

Permalink
delete ununsed variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
aikiriao committed Jun 25, 2024
1 parent cec32e0 commit 2fa237a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions libs/lpc/src/lpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,6 @@ static LPCError LPC_LevinsonDurbinRecursion(struct LPCCalculator *lpcc,

/* オート変数にポインタをコピー */
double **a_vecs = lpcc->a_vecs;
double *u_vec = lpcc->u_vec;
double *v_vec = lpcc->v_vec;

/* 引数チェック */
if ((lpcc == NULL) || (auto_corr == NULL) || (parcor_coef == NULL)) {
Expand Down Expand Up @@ -402,8 +400,6 @@ static LPCError LPC_LevinsonDurbinRecursion(struct LPCCalculator *lpcc,
a_vecs[0][2] = 0.0;
parcor_coef[0] = auto_corr[1] / error_vars[0];
error_vars[1] = error_vars[0] + auto_corr[1] * a_vecs[0][1];
u_vec[0] = 1.0; u_vec[1] = 0.0;
v_vec[0] = 0.0; v_vec[1] = 1.0;

/* 再帰処理 */
for (k = 1; k < coef_order; k++) {
Expand Down

0 comments on commit 2fa237a

Please sign in to comment.