From 80f62e8fddcca8082d04d269946ea4042fd8c6b3 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Tue, 21 Sep 2021 09:44:07 +0200 Subject: [PATCH] Remove unused imports --- tests/extensions/base64ext.nim | 1 - tests/extensions/hexext.nim | 1 - tests/extensions/testcompression.nim | 4 ++-- tests/helpers.nim | 3 +-- tests/testwebsockets.nim | 2 +- websock/extensions.nim | 1 - websock/http.nim | 1 - websock/websock.nim | 3 +-- 8 files changed, 5 insertions(+), 11 deletions(-) diff --git a/tests/extensions/base64ext.nim b/tests/extensions/base64ext.nim index a52d319f58..0ffd24fca0 100644 --- a/tests/extensions/base64ext.nim +++ b/tests/extensions/base64ext.nim @@ -8,7 +8,6 @@ ## those terms. import - std/[strutils], pkg/[stew/results, stew/base64, chronos, diff --git a/tests/extensions/hexext.nim b/tests/extensions/hexext.nim index 5507ff58e0..9da8f37ca3 100644 --- a/tests/extensions/hexext.nim +++ b/tests/extensions/hexext.nim @@ -8,7 +8,6 @@ ## those terms. import - std/[strutils], pkg/[stew/results, stew/byteutils, chronos, diff --git a/tests/extensions/testcompression.nim b/tests/extensions/testcompression.nim index 68ecf6be3c..72dc0d5c3e 100644 --- a/tests/extensions/testcompression.nim +++ b/tests/extensions/testcompression.nim @@ -8,9 +8,9 @@ ## those terms. import std/os -import pkg/[chronos, stew/byteutils, stew/io2] +import pkg/[chronos, stew/io2] import pkg/asynctest/unittest2 -import ../../websock/websock, ../helpers +import ../../websock/websock import ../../websock/extensions/compression/deflate const diff --git a/tests/helpers.nim b/tests/helpers.nim index 1a82a0a9db..bc473d282c 100644 --- a/tests/helpers.nim +++ b/tests/helpers.nim @@ -14,8 +14,7 @@ import pkg/[ chronos, chronos/streams/tlsstream, httputils, - chronicles, - stew/byteutils] + chronicles] import ../websock/websock import ./keys diff --git a/tests/testwebsockets.nim b/tests/testwebsockets.nim index 7b8f5df606..bbc28f9c4d 100644 --- a/tests/testwebsockets.nim +++ b/tests/testwebsockets.nim @@ -7,7 +7,7 @@ ## This file may not be copied, modified, or distributed except according to ## those terms. -import std/[strutils, random] +import std/strutils import pkg/[ httputils, chronos, diff --git a/websock/extensions.nim b/websock/extensions.nim index b8c84769fd..b5ad4588cd 100644 --- a/websock/extensions.nim +++ b/websock/extensions.nim @@ -7,7 +7,6 @@ ## This file may not be copied, modified, or distributed except according to ## those terms. -import std/tables import ./extensions/extutils # import ./extensions/compression/compression diff --git a/websock/http.nim b/websock/http.nim index e78ead93d0..d076a2016a 100644 --- a/websock/http.nim +++ b/websock/http.nim @@ -9,7 +9,6 @@ import std/uri import pkg/[ - chronos, chronos/apps/http/httptable, chronos/streams/tlsstream, httputils] diff --git a/websock/websock.nim b/websock/websock.nim index 612d05327f..8af803f274 100644 --- a/websock/websock.nim +++ b/websock/websock.nim @@ -13,8 +13,7 @@ import std/[tables, strutils, strformat, sequtils, - uri, - parseutils] + uri] import pkg/[chronos, chronos/apps/http/httptable,