From 0cb5b42d546538b455ac3bbe90b07e3eb67eb820 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sat, 18 Apr 2009 18:11:00 +0200 Subject: Remove trivial unused variables detected by CLang static analyzer. --- gst/smpte/gstsmptealpha.c | 3 --- gst/smpte/paint.c | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'gst/smpte') diff --git a/gst/smpte/gstsmptealpha.c b/gst/smpte/gstsmptealpha.c index d7817f45..61b4b0b1 100644 --- a/gst/smpte/gstsmptealpha.c +++ b/gst/smpte/gstsmptealpha.c @@ -346,14 +346,11 @@ static gboolean gst_smpte_alpha_get_unit_size (GstBaseTransform * btrans, GstCaps * caps, guint * size) { - GstSMPTEAlpha *smpte; GstStructure *structure; gboolean ret; gint width, height; guint32 fourcc; - smpte = GST_SMPTE_ALPHA (btrans); - structure = gst_caps_get_structure (caps, 0); ret = gst_structure_get_int (structure, "width", &width); diff --git a/gst/smpte/paint.c b/gst/smpte/paint.c index 25f82ea4..7c2ba0dc 100644 --- a/gst/smpte/paint.c +++ b/gst/smpte/paint.c @@ -263,10 +263,9 @@ gst_smpte_paint_triangle_clock (guint32 * dest, gint stride, { gint i; gint sign; - gfloat angle, angle_s, angle_e; + gfloat angle, angle_e; gfloat len1; - angle_s = 0.0; angle_e = acos (((x1 - x0) * (x2 - x0) + (y1 - y0) * (y2 - y0)) / (sqrt ((x1 - x0) * (x1 - x0) + (y1 - y0) * (y1 - y0)) * sqrt ((x2 - x0) * (x2 - x0) + (y2 - y0) * (y2 - y0)))); -- cgit