audiofx: Remove unused variable.
authorEdward Hervey <bilboed@bilboed.com>
Sat, 18 Apr 2009 16:16:33 +0000 (18:16 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Sat, 18 Apr 2009 16:51:28 +0000 (18:51 +0200)
rz is never used in these methods.

gst/audiofx/audiochebband.c
gst/audiofx/audiocheblimit.c

index 7ecb795..037304c 100644 (file)
@@ -221,7 +221,7 @@ generate_biquad_coefficients (GstAudioChebBand * filter,
   gdouble rp, ip;
 
   /* zero location in s-plane */
-  gdouble rz = 0.0, iz = 0.0;
+  gdouble iz = 0.0;
 
   /* transfer function coefficients for the z-plane */
   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 mag2;
 
-    rz = 0.0;
     iz = cos (angle);
-    mag2 = rz * rz + iz * iz;
-    rz /= mag2;
+    mag2 = iz * iz;
     iz /= mag2;
   }
 
index 5d91909..02cbc14 100644 (file)
@@ -214,7 +214,7 @@ generate_biquad_coefficients (GstAudioChebLimit * filter,
   gdouble rp, ip;
 
   /* zero location in s-plane */
-  gdouble rz = 0.0, iz = 0.0;
+  gdouble iz = 0.0;
 
   /* transfer function coefficients for the z-plane */
   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 mag2;
 
-    rz = 0.0;
     iz = cos (angle);
-    mag2 = rz * rz + iz * iz;
-    rz /= mag2;
+    mag2 = iz * iz;
     iz /= mag2;
   }