Removed legacy code, unified Client and Server Route

This commit is contained in:
Philip Trauner 2016-10-03 20:50:41 +02:00
parent 1105b0fc8c
commit e03102679d

View file

@ -1,18 +1,3 @@
BROADCAST = 0
ROUTE = 1
SOCK = 2
class InvalidRouteSetup(AttributeError):
def __init__(self, msg):
super(AttributeError, self).__init__(msg)
class InvalidRouteLength(AttributeError):
def __init__(self, msg):
super(AttributeError, self).__init__(msg)
class Route:
def run(self, data, handler):
pass
@ -21,15 +6,6 @@ class Route:
pass
class ServerRoute(Route):
REQUIRED = []
PATCHED = False
class ClientRoute(Route):
pass
def create_routes(routes, handler):
routes = routes.copy()
reverse_routes = {}