From 40e75a76355b3a15b15820767d4b59fe1e70d192 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Mon, 2 Sep 2019 21:14:09 -0600 Subject: [PATCH] remove useless methods --- libp2p/connection.nim | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/libp2p/connection.nim b/libp2p/connection.nim index 49b551f..0fda5ca 100644 --- a/libp2p/connection.nim +++ b/libp2p/connection.nim @@ -8,7 +8,9 @@ ## those terms. import chronos -import peerinfo, multiaddress, stream/lpstream, peerinfo, varint, vbuffer +import peerinfo, multiaddress, + stream/lpstream, peerinfo, + varint, vbuffer const DefaultReadSize: uint = 64 * 1024 @@ -103,11 +105,6 @@ proc writeLp*(s: Connection, msg: string | seq[byte]) {.async, gcsafe.} = buf.finish() result = s.write(buf.buffer) -method getPeerInfo*(c: Connection): Future[PeerInfo] {.base, async, gcsafe.} = - ## get up to date peer info - ## TODO: implement PeerInfo refresh over identify - discard - method getObservedAddrs*(c: Connection): Future[MultiAddress] {.base, async, gcsafe.} = ## get resolved multiaddresses for the connection discard