From 5fc57c1076cf96a0ebc02ca610996637bf9060ec Mon Sep 17 00:00:00 2001 From: Alex Haynes Date: Sun, 21 Apr 2019 13:22:11 -0400 Subject: [PATCH] removed duplicate code --- libp2p/kademlia/routed_host.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/libp2p/kademlia/routed_host.py b/libp2p/kademlia/routed_host.py index 9d898fb..b7634f2 100644 --- a/libp2p/kademlia/routed_host.py +++ b/libp2p/kademlia/routed_host.py @@ -19,17 +19,3 @@ class RoutedHost(BasicHost): def kad_set_digest(self, dkey, value): return self.kad_network.set_digest(dkey, value) - -def check_dht_value_type(value): - """ - Checks to see if the type of the value is a valid type for - placing in the dht. - """ - typeset = [ - int, - float, - bool, - str, - bytes - ] - return type(value) in typeset # pylint: disable=unidiomatic-typecheck