remove unused import/variable

This commit is contained in:
Ludovic Chenut 2024-03-08 11:35:13 +01:00
parent f445c5c47d
commit 0d10bddcdd
No known key found for this signature in database
GPG Key ID: D9A59B1907F1D50C
2 changed files with 2 additions and 7 deletions

View File

@ -285,9 +285,7 @@ proc removeConnection(self: Dtls, conn: DtlsConn, raddr: TransportAddress) {.asy
self.connections.del(raddr)
proc accept*(self: Dtls): Future[DtlsConn] {.async.} =
var
selfvar = self
res = DtlsConn()
var res = DtlsConn()
res.init(self.conn, self.laddr)
mb_ssl_init(res.ssl)
@ -334,9 +332,7 @@ proc accept*(self: Dtls): Future[DtlsConn] {.async.} =
return res
proc connect*(self: Dtls, raddr: TransportAddress): Future[DtlsConn] {.async.} =
var
selfvar = self
res = DtlsConn()
var res = DtlsConn()
res.init(self.conn, self.laddr)
mb_ssl_init(res.ssl)

View File

@ -7,7 +7,6 @@
# This file may not be copied, modified, or distributed except according to
# those terms.
import sequtils
import chronos, chronicles
logScope: