From 59147fd111456cbc14466f509f22286bba952eb9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 13 Jun 2010 16:59:40 +0200 Subject: [PATCH] complexity: Remove dead assignments and unused variables --- tests/benchmarks/complexity.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tests/benchmarks/complexity.c b/tests/benchmarks/complexity.c index ee5359d..3599a09 100644 --- a/tests/benchmarks/complexity.c +++ b/tests/benchmarks/complexity.c @@ -22,9 +22,6 @@ #include #define BUFFER_COUNT (1000) -#define SRC_ELEMENT "fakesrc" -#define SINK_ELEMENT "fakesink" - gint main (gint argc, gchar * argv[]) @@ -34,7 +31,6 @@ main (gint argc, gchar * argv[]) GSList *saved_src_list, *src_list, *new_src_list; guint complexity_order, n_elements, i, j, max_this_level; GstClockTime start, end; - gboolean all_srcs_linked; gst_init (&argc, &argv); @@ -60,22 +56,16 @@ main (gint argc, gchar * argv[]) new_src_list = NULL; max_this_level = 1; - j = 0; - i = 0; - all_srcs_linked = FALSE; for (i = 0, j = 0; i < n_elements; i++, j++) { if (j >= max_this_level) { g_slist_free (saved_src_list); saved_src_list = g_slist_reverse (new_src_list); new_src_list = NULL; j = 0; - all_srcs_linked = FALSE; max_this_level *= complexity_order; } if (!src_list) { - if (j) - all_srcs_linked = TRUE; src_list = saved_src_list; } -- 2.7.4