remove unused stdlib imports (#3718)

This commit is contained in:
tersec 2022-06-09 08:50:36 +00:00 committed by GitHub
parent 7ec1521c52
commit 1dec3ff8b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 41 additions and 10 deletions

View File

@ -11,7 +11,7 @@
import
# Standard library
std/[os, tables, strutils, terminal, typetraits],
std/[tables, strutils, terminal, typetraits],
# Nimble packages
chronos, confutils, toml_serialization,
@ -96,6 +96,9 @@ proc detectTTY*(stdoutKind: StdoutLogKind): StdoutLogKind =
else:
stdoutKind
when defaultChroniclesStream.outputs.type.arity == 2:
from std/os import splitFile
proc setupLogging*(
logLevel: string, stdoutKind: StdoutLogKind, logFile: Option[OutFile]) =
# In the cfg file for nimbus, we create two formats: textlines and json.

View File

@ -6,7 +6,7 @@
# at your option. This file may not be copied, modified, or distributed except according to those terms.
import
std/[typetraits, sequtils, strutils, sets],
std/[typetraits, sequtils, sets],
stew/[results, base10],
chronicles,
./rest_utils,

View File

@ -1,9 +1,10 @@
# Copyright (c) 2018-2021 Status Research & Development GmbH
# Copyright (c) 2018-2022 Status Research & Development GmbH
# Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms.
import std/[typetraits, strutils, sets]
import std/[typetraits, sets]
import stew/[results, base10], chronicles
import ".."/[beacon_chain_db, beacon_node],
".."/networking/eth2_network,

View File

@ -1,5 +1,11 @@
# beacon_chain
# Copyright (c) 2021-2022 Status Research & Development GmbH
# Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms.
import
std/[tables, strutils, uri],
".."/[crypto, keystore],
../../validators/slashing_protection_common

View File

@ -14,7 +14,7 @@
{.push raises: [Defect].}
import
std/[json, typetraits],
std/json,
stew/base10, web3/ethtypes,
".."/forks,
".."/datatypes/[phase0, altair, bellatrix],

View File

@ -1,4 +1,11 @@
import std/[sets, sequtils]
# beacon_chain
# Copyright (c) 2021-2022 Status Research & Development GmbH
# Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms.
import std/sets
import chronicles
import "."/[common, api, block_service]

View File

@ -1,4 +1,11 @@
import std/[tables, os, sets, sequtils, strutils]
# beacon_chain
# Copyright (c) 2021-2022 Status Research & Development GmbH
# Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms.
import std/[tables, os, sets, sequtils]
import chronos, presto, presto/client as presto_client, chronicles, confutils,
json_serialization/std/[options, net],
stew/[base10, results, byteutils]

View File

@ -1,5 +1,12 @@
# beacon_chain
# Copyright (c) 2022 Status Research & Development GmbH
# Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
# at your option. This file may not be copied, modified, or distributed except according to those terms.
import
std/[sets, sequtils],
std/sets,
chronicles,
"."/[common, api, block_service],
../spec/datatypes/[phase0, altair, bellatrix],

View File

@ -13,7 +13,7 @@
import
# Standard library
std/[os, osproc, sequtils, streams, tables],
std/[os, sequtils, tables],
# Nimble packages
stew/[assign2, byteutils, objects],