remove generic constructor

This commit is contained in:
Dmitriy Ryajov 2019-09-03 14:40:09 -06:00
parent 9bc7043f48
commit 93bd7f623c
1 changed files with 0 additions and 7 deletions

View File

@ -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