Commit 9463b7c4 authored by Matt Traudt's avatar Matt Traudt
Browse files

Remove some unused code

Part of this takes care of... GH: closes #145
parent f80b285f
......@@ -111,11 +111,6 @@ class RelayList:
def fast(self):
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)
......@@ -124,28 +119,10 @@ class RelayList:
def guards(self):
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**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment