From c3b048a4d3632f8b5d928eeca8b4dfe34bda303e Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Mon, 20 Apr 2015 18:34:45 -0700 Subject: [PATCH] relay: remove/disable unused code, hush pyflakes --- src/wormhole/servers/relay.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/wormhole/servers/relay.py b/src/wormhole/servers/relay.py index 9e00cf1..53a4ca3 100644 --- a/src/wormhole/servers/relay.py +++ b/src/wormhole/servers/relay.py @@ -142,7 +142,7 @@ class Allocator(resource.Resource): self.relay = relay self.welcome = welcome def render_POST(self, request): - side = request.postpath[0] + #side = request.postpath[0] channel_id = self.relay.allocate_channel_id() self.relay.channels[channel_id] = Channel(channel_id, self.relay, self.welcome) @@ -366,6 +366,3 @@ class RelayServer(service.MultiService): self.transit.setServiceParent(self) # for the timer self.transport_service = strports.service(transitport, self.transit) self.transport_service.setServiceParent(self) - -application = service.Application("foo") -RelayServer("tcp:3000", "tcp:3001").setServiceParent(application)