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

[tor-commits] [flashproxy/master] Remove understanding of RTMFP regs from facilitator.



commit 4fe3bf784716eb90b2f240cd686dce6849c5d0e3
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Wed Jul 4 04:10:48 2012 -0700

    Remove understanding of RTMFP regs from facilitator.
---
 facilitator.py |   19 -------------------
 1 files changed, 0 insertions(+), 19 deletions(-)

diff --git a/facilitator.py b/facilitator.py
index 3e7ca09..83de49b 100755
--- a/facilitator.py
+++ b/facilitator.py
@@ -129,22 +129,6 @@ class TCPReg(object):
         else:
             return False
 
-class RTMFPReg(object):
-    def __init__(self, id):
-        self.id = id
-
-    def __unicode__(self):
-        return u"%s" % self.id
-
-    def __str__(self):
-        return unicode(self).encode("UTF-8")
-
-    def __cmp__(self, other):
-        if isinstance(other, RTMFPReg):
-            return cmp(self.id, other.id)
-        else:
-            return False
-
 class Reg(object):
     @staticmethod
     def parse(spec, defhost = None, defport = None):
@@ -163,9 +147,6 @@ class Reg(object):
             host, port = socket.getnameinfo(addrs[0][4], socket.NI_NUMERICHOST | socket.NI_NUMERICSERV)
             return TCPReg(host, int(port))
 
-        if re.match(ur'^[0-9A-Fa-f]{64}$', spec):
-            return RTMFPReg(spec)
-
         raise ValueError("Bad spec format: %s" % repr(spec))
 
 class RegSet(object):



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