From 0d10bddcddd960d3a9392c9b0803ec4ba879c3a3 Mon Sep 17 00:00:00 2001 From: Ludovic Chenut Date: Fri, 8 Mar 2024 11:35:13 +0100 Subject: [PATCH] remove unused import/variable --- webrtc/dtls/dtls.nim | 8 ++------ webrtc/udp_connection.nim | 1 - 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/webrtc/dtls/dtls.nim b/webrtc/dtls/dtls.nim index b09a888..1bc4cbf 100644 --- a/webrtc/dtls/dtls.nim +++ b/webrtc/dtls/dtls.nim @@ -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) diff --git a/webrtc/udp_connection.nim b/webrtc/udp_connection.nim index a096231..cb0ab72 100644 --- a/webrtc/udp_connection.nim +++ b/webrtc/udp_connection.nim @@ -7,7 +7,6 @@ # This file may not be copied, modified, or distributed except according to # those terms. -import sequtils import chronos, chronicles logScope: