summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-04-18 18:16:33 +0200
committerEdward Hervey <bilboed@bilboed.com>2009-04-18 18:51:28 +0200
commita299e86cfc2460a75f377b05b10a87c3ecfb5e18 (patch)
tree56e06752128c9be5df36c5551c1e48b222d1b290
parentbd4f8576fef4a043df01d75a54719e1955b29f3a (diff)
audiofx: Remove unused variable.
rz is never used in these methods.
-rw-r--r--gst/audiofx/audiochebband.c6
-rw-r--r--gst/audiofx/audiocheblimit.c6
2 files changed, 4 insertions, 8 deletions
diff --git a/gst/audiofx/audiochebband.c b/gst/audiofx/audiochebband.c
index 7ecb7956c..037304c58 100644
--- a/gst/audiofx/audiochebband.c
+++ b/gst/audiofx/audiochebband.c
@@ -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;
}
diff --git a/gst/audiofx/audiocheblimit.c b/gst/audiofx/audiocheblimit.c
index 5d91909ef..02cbc14bf 100644
--- a/gst/audiofx/audiocheblimit.c
+++ b/gst/audiofx/audiocheblimit.c
@@ -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;
}