[tor-commits] [nyx/master] Drop get_root()

atagar at torproject.org atagar at torproject.org
Sat Aug 27 18:23:50 UTC 2016


commit 23c8ad3fba5254d8186386d592bad853ae789033
Author: Damian Johnson <atagar at torproject.org>
Date:   Thu Aug 11 09:03:25 2016 -0700

    Drop get_root()
    
    Method is unused. Easy one to drop.
---
 nyx/menu.py | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/nyx/menu.py b/nyx/menu.py
index 4a756c4..4c85263 100644
--- a/nyx/menu.py
+++ b/nyx/menu.py
@@ -69,16 +69,6 @@ class MenuItem(object):
     my_hierarchy.reverse()
     return my_hierarchy
 
-  def get_root(self):
-    """
-    Provides the base submenu we belong to.
-    """
-
-    if self._parent:
-      return self._parent.get_root()
-    else:
-      return self
-
   def select(self):
     """
     Performs the callback for the menu item, returning true if we should close





More information about the tor-commits mailing list