From 0da9cbdeeb49c2900059f78ad7afb2aef8ba069d Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Wed, 5 Apr 2017 21:43:20 -0700 Subject: [PATCH] remove unused code --- src/wormhole/_rendezvous.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/wormhole/_rendezvous.py b/src/wormhole/_rendezvous.py index c4e5c45..4029e3f 100644 --- a/src/wormhole/_rendezvous.py +++ b/src/wormhole/_rendezvous.py @@ -57,10 +57,6 @@ class WSFactory(websocket.WebSocketClientFactory): #proto.wormhole_open = False return proto -def dmsg(side, text): - offset = int(side, 16) % 20 - print(" "*offset, text) - @attrs @implementer(_interfaces.IRendezvousConnector) class RendezvousConnector(object): @@ -154,11 +150,6 @@ class RendezvousConnector(object): def ws_message(self, payload): msg = bytes_to_dict(payload) - #if self.DEBUG and msg["type"]!="ack": - # dmsg(self._side, "R.rx(%s %s%s)" % - # (msg["type"], msg.get("phase",""), - # "[mine]" if msg.get("side","") == self._side else "", - # )) if msg["type"] != "ack": self._debug("R.rx(%s %s%s)" % (msg["type"], msg.get("phase",""),