[gnome-control-center] display: remove unused code
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-control-center] display: remove unused code
- Date: Thu, 14 Apr 2016 19:33:00 +0000 (UTC)
commit cc5c94f15104807269c80f50fda6ca299f16e5db
Author: Cosimo Cecchi <cosimo endlessm com>
Date:   Mon Mar 28 17:30:10 2016 -0700
    display: remove unused code
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764296
 panels/display/cc-display-panel.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/panels/display/cc-display-panel.c b/panels/display/cc-display-panel.c
index 3db42c4..06d9579 100644
--- a/panels/display/cc-display-panel.c
+++ b/panels/display/cc-display-panel.c
@@ -480,7 +480,7 @@ on_screen_changed (CcDisplayPanel *panel)
   GnomeRRConfig *current;
   CcDisplayPanelPrivate *priv = panel->priv;
   GnomeRROutputInfo **outputs;
-  gint i, num_active_outputs = 0, num_connected_outputs = 0, number = 0;
+  gint i, num_connected_outputs = 0, number = 0;
   gboolean clone, combined = FALSE;
   GtkSizeGroup *sizegroup;
   GList *sorted_outputs = NULL, *l;
@@ -524,9 +524,6 @@ on_screen_changed (CcDisplayPanel *panel)
       else
         sorted_outputs = g_list_append (sorted_outputs, outputs[i]);
 
-
-      if (gnome_rr_output_info_is_active (outputs[i]))
-        num_active_outputs++;
       num_connected_outputs++;
     }
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]