]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
iptv_input_get_weight: remove unused code
authorJaroslav Kysela <perex@perex.cz>
Wed, 22 Apr 2015 15:18:16 +0000 (17:18 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 22 Apr 2015 15:18:21 +0000 (17:18 +0200)
src/input/mpegts/iptv/iptv.c

index ffe814731fd68a06d969d0f2313555e070eefc3b..7b819e6d24e58747000a09940b01f23b139fab91 100644 (file)
@@ -129,12 +129,9 @@ iptv_input_is_free ( mpegts_input_t *mi )
 static int
 iptv_input_get_weight ( mpegts_input_t *mi, int flags )
 {
-  int c = 0, w = 0;
+  int w = 0;
   const th_subscription_t *ths;
   const service_t *s;
-  const mpegts_mux_instance_t *mmi;
-  LIST_FOREACH(mmi, &mi->mi_mux_active, mmi_active_link)
-    c++;
 
   /* Find the "min" weight */
   if (!iptv_input_is_free(mi)) {