[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [arm/master] Dropping GraphStat's is_selected attribute



commit b3c5538faac15e547f29f072d02feee77a84ddf3
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Tue Oct 21 07:16:27 2014 -0700

    Dropping GraphStat's is_selected attribute
    
    No longer used, yet another little tidbit we can get rid of.
---
 arm/graph_panel.py |    6 ------
 1 file changed, 6 deletions(-)

diff --git a/arm/graph_panel.py b/arm/graph_panel.py
index d6e85bd..9caa4b1 100644
--- a/arm/graph_panel.py
+++ b/arm/graph_panel.py
@@ -143,14 +143,12 @@ class GraphStats(object):
     if clone:
       self.title = clone.title
       self.title_stats = list(clone.title_stats)
-      self.is_selected = clone.is_selected
 
       self.primary = Stat(clone.primary)
       self.secondary = Stat(clone.secondary)
     else:
       self.title = ''
       self.title_stats = []
-      self.is_selected = False
 
       self.primary = Stat()
       self.secondary = Stat()
@@ -836,14 +834,10 @@ class GraphPanel(panel.Panel):
     """
 
     if label != self.current_display:
-      if self.current_display:
-        self.stats[self.current_display].is_selected = False
-
       if not label:
         self.current_display = None
       elif label in self.stats.keys():
         self.current_display = label
-        self.stats[self.current_display].is_selected = True
       else:
         raise ValueError('Unrecognized stats label: %s' % label)
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits