From 93bd7f623c9814c14dbb180771c1df319056c0f0 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Tue, 3 Sep 2019 14:40:09 -0600 Subject: [PATCH] remove generic constructor --- libp2p/protocol.nim | 7 ------- 1 file changed, 7 deletions(-) diff --git a/libp2p/protocol.nim b/libp2p/protocol.nim index 1daa17fd6..a4c8c05ab 100644 --- a/libp2p/protocol.nim +++ b/libp2p/protocol.nim @@ -17,14 +17,7 @@ type Future[void] {.gcsafe, closure.} LPProtocol* = ref object of RootObj - peerInfo*: PeerInfo codec*: string handler*: LPProtoHandler ## this handler gets invoked by the protocol negotiator -proc newProtocol*(p: typedesc[LPProtocol], - peerInfo: PeerInfo): p = - new result - result.peerInfo = peerInfo - result.init() - method init*(p: LPProtocol) {.base, gcsafe.} = discard