remove unused import/variable
This commit is contained in:
parent
f445c5c47d
commit
0d10bddcdd
|
@ -285,9 +285,7 @@ proc removeConnection(self: Dtls, conn: DtlsConn, raddr: TransportAddress) {.asy
|
||||||
self.connections.del(raddr)
|
self.connections.del(raddr)
|
||||||
|
|
||||||
proc accept*(self: Dtls): Future[DtlsConn] {.async.} =
|
proc accept*(self: Dtls): Future[DtlsConn] {.async.} =
|
||||||
var
|
var res = DtlsConn()
|
||||||
selfvar = self
|
|
||||||
res = DtlsConn()
|
|
||||||
|
|
||||||
res.init(self.conn, self.laddr)
|
res.init(self.conn, self.laddr)
|
||||||
mb_ssl_init(res.ssl)
|
mb_ssl_init(res.ssl)
|
||||||
|
@ -334,9 +332,7 @@ proc accept*(self: Dtls): Future[DtlsConn] {.async.} =
|
||||||
return res
|
return res
|
||||||
|
|
||||||
proc connect*(self: Dtls, raddr: TransportAddress): Future[DtlsConn] {.async.} =
|
proc connect*(self: Dtls, raddr: TransportAddress): Future[DtlsConn] {.async.} =
|
||||||
var
|
var res = DtlsConn()
|
||||||
selfvar = self
|
|
||||||
res = DtlsConn()
|
|
||||||
|
|
||||||
res.init(self.conn, self.laddr)
|
res.init(self.conn, self.laddr)
|
||||||
mb_ssl_init(res.ssl)
|
mb_ssl_init(res.ssl)
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
# This file may not be copied, modified, or distributed except according to
|
# This file may not be copied, modified, or distributed except according to
|
||||||
# those terms.
|
# those terms.
|
||||||
|
|
||||||
import sequtils
|
|
||||||
import chronos, chronicles
|
import chronos, chronicles
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
|
|
Loading…
Reference in New Issue