[tor-commits] [sbws/master] Remove some unused code

pastly at torproject.org pastly at torproject.org
Thu Jun 14 13:29:51 UTC 2018


commit 9463b7c4c6b16c3c475759bc477e4414f319d478
Author: Matt Traudt <sirmatt at ksu.edu>
Date:   Tue Jun 12 09:37:56 2018 -0400

    Remove some unused code
    
    Part of this takes care of... GH: closes #145
---
 sbws/lib/relaylist.py | 23 -----------------------
 1 file changed, 23 deletions(-)

diff --git a/sbws/lib/relaylist.py b/sbws/lib/relaylist.py
index 4f7055c..7b3d58a 100644
--- a/sbws/lib/relaylist.py
+++ b/sbws/lib/relaylist.py
@@ -112,11 +112,6 @@ class RelayList:
         return self._relays_with_flag(Flag.FAST)
 
     @property
-    def slow(self):
-        ''' Returns relays without the Fast flag '''
-        return self._relays_without_flag(Flag.FAST)
-
-    @property
     def exits(self):
         return self._relays_with_flag(Flag.EXIT)
 
@@ -125,27 +120,9 @@ class RelayList:
         return self._relays_with_flag(Flag.GUARD)
 
     @property
-    def hsdirs(self):
-        return self._relays_with_flag(Flag.HSDIR)
-
-    @property
     def authorities(self):
         return self._relays_with_flag(Flag.AUTHORITY)
 
-    @property
-    def unmeasured(self):
-        ''' SEEMS BROKEN in stem 1.6.0 as it always returns no relays '''
-        relays = self.relays
-        # return [r for r in relays if r.measured is None]
-        return [r for r in relays if r.is_unmeasured]
-
-    @property
-    def measured(self):
-        ''' SEEMS BROKEN in stem 1.6.0 as it always returns all relays '''
-        relays = self.relays
-        # return [r for r in relays if r.measured is not None]
-        return [r for r in relays if not r.is_unmeasured]
-
     def exits_can_exit_to(self, host, port):
         '''
         Return exits that can MOST LIKELY exit to the given host:port. **host**





More information about the tor-commits mailing list