From 250831a86aadb81f2794a16d25b9b4ade8781738 Mon Sep 17 00:00:00 2001 From: Job Evers-Meltzer Date: Tue, 13 Dec 2016 21:01:01 -0600 Subject: [PATCH] remove unused distance function from routingtable --- lbrynet/dht/routingtable.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lbrynet/dht/routingtable.py b/lbrynet/dht/routingtable.py index 7d7334e7c..b9dff61f2 100644 --- a/lbrynet/dht/routingtable.py +++ b/lbrynet/dht/routingtable.py @@ -31,16 +31,6 @@ class RoutingTable(object): @type contact: kademlia.contact.Contact """ - def distance(self, keyOne, keyTwo): - """ Calculate the XOR result between two string variables - - @return: XOR result of two long variables - @rtype: long - """ - valKeyOne = long(keyOne.encode('hex'), 16) - valKeyTwo = long(keyTwo.encode('hex'), 16) - return valKeyOne ^ valKeyTwo - def findCloseNodes(self, key, count, _rpcNodeID=None): """ Finds a number of known nodes closest to the node/value with the specified key.