From c8fbc22120aef8fd7d40a276fb06827623c9e50a Mon Sep 17 00:00:00 2001 From: meejah Date: Fri, 19 Feb 2021 17:17:42 -0700 Subject: [PATCH] dead code --- src/wormhole_transit_relay/transit_server.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/wormhole_transit_relay/transit_server.py b/src/wormhole_transit_relay/transit_server.py index a9cdddd..0b23a66 100644 --- a/src/wormhole_transit_relay/transit_server.py +++ b/src/wormhole_transit_relay/transit_server.py @@ -57,16 +57,6 @@ class TransitConnection(LineReceiver): self._buddy._client.transport.loseConnection() self._buddy = None - def describeToken(self): - d = "-" - if self._got_token: - d = self._got_token[:16].decode("ascii") - if self._got_side: - d += "-" + self._got_side.decode("ascii") - else: - d += "-" - return d - def connectionMade(self): # ideally more like self._reactor.seconds() ... but Twisted # doesn't have a good way to get the reactor for a protocol @@ -136,6 +126,7 @@ class TransitConnection(LineReceiver): # XXX this probably resulted in a log message we've not refactored yet # self.factory.transitFinished(self, self._got_token, self._got_side, # self.describeToken()) +# XXX describeToken -> self._state.get_token()