[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [nyx/master] Drop get_root()
commit 23c8ad3fba5254d8186386d592bad853ae789033
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits