audiofx: Remove unused variable.

rz is never used in these methods.
This commit is contained in:
Edward Hervey 2009-04-18 18:16:33 +02:00
parent bd4f8576fe
commit a299e86cfc
2 changed files with 4 additions and 8 deletions

View File

@ -221,7 +221,7 @@ generate_biquad_coefficients (GstAudioChebBand * filter,
gdouble rp, ip; gdouble rp, ip;
/* zero location in s-plane */ /* zero location in s-plane */
gdouble rz = 0.0, iz = 0.0; gdouble iz = 0.0;
/* transfer function coefficients for the z-plane */ /* transfer function coefficients for the z-plane */
gdouble x0, x1, x2, y1, y2; gdouble x0, x1, x2, y1, y2;
@ -269,10 +269,8 @@ generate_biquad_coefficients (GstAudioChebBand * filter,
gdouble angle = M_PI / (np * 2.0) + ((p - 1) * M_PI) / (np); gdouble angle = M_PI / (np * 2.0) + ((p - 1) * M_PI) / (np);
gdouble mag2; gdouble mag2;
rz = 0.0;
iz = cos (angle); iz = cos (angle);
mag2 = rz * rz + iz * iz; mag2 = iz * iz;
rz /= mag2;
iz /= mag2; iz /= mag2;
} }

View File

@ -214,7 +214,7 @@ generate_biquad_coefficients (GstAudioChebLimit * filter,
gdouble rp, ip; gdouble rp, ip;
/* zero location in s-plane */ /* zero location in s-plane */
gdouble rz = 0.0, iz = 0.0; gdouble iz = 0.0;
/* transfer function coefficients for the z-plane */ /* transfer function coefficients for the z-plane */
gdouble x0, x1, x2, y1, y2; gdouble x0, x1, x2, y1, y2;
@ -262,10 +262,8 @@ generate_biquad_coefficients (GstAudioChebLimit * filter,
gdouble angle = M_PI / (np * 2.0) + ((p - 1) * M_PI) / (np); gdouble angle = M_PI / (np * 2.0) + ((p - 1) * M_PI) / (np);
gdouble mag2; gdouble mag2;
rz = 0.0;
iz = cos (angle); iz = cos (angle);
mag2 = rz * rz + iz * iz; mag2 = iz * iz;
rz /= mag2;
iz /= mag2; iz /= mag2;
} }