remove unused imports

This commit is contained in:
Dustin Brody 2020-03-11 10:26:18 +01:00 committed by tersec
parent f20ebf5cd1
commit 0d3de00714
7 changed files with 15 additions and 12 deletions

View File

@ -1,8 +1,8 @@
import import
os, net, strutils, strformat, parseutils, os, net, strutils, strformat, parseutils,
chronicles, stew/[result, objects], eth/keys, eth/trie/db, eth/p2p/enode, chronicles, stew/[result, objects], eth/keys, eth/trie/db, eth/p2p/enode,
eth/p2p/discoveryv5/[enr, protocol, node, discovery_db, types], eth/p2p/discoveryv5/[enr, protocol, discovery_db, types],
libp2p/[multiaddress, multicodec, peer], libp2p/[multiaddress, peer],
libp2p/crypto/crypto as libp2pCrypto, libp2p/crypto/crypto as libp2pCrypto,
conf conf

View File

@ -1,7 +1,6 @@
import import
chronos, web3, json, chronicles, chronos, web3, json, chronicles,
spec/[datatypes, digest, crypto, beaconstate, helpers], spec/[datatypes, digest, crypto, beaconstate, helpers]
./extras
type type
MainchainMonitor* = ref object MainchainMonitor* = ref object

View File

@ -12,7 +12,7 @@ import
os, unittest, os, unittest,
# Beacon chain internals # Beacon chain internals
../../beacon_chain/spec/[datatypes, state_transition_block, validator], ../../beacon_chain/spec/[datatypes, state_transition_block, validator],
../../beacon_chain/[ssz, extras], ../../beacon_chain/ssz,
# Test utilities # Test utilities
../testutil, ../testutil,
./fixtures_utils, ./fixtures_utils,

View File

@ -1,5 +1,5 @@
# beacon_chain # beacon_chain
# Copyright (c) 2018 Status Research & Development GmbH # Copyright (c) 2018-2020 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * 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). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
@ -8,12 +8,14 @@
{.used.} {.used.}
import import
options, unittest, unittest,
chronicles, chronicles,
stew/byteutils, stew/byteutils,
./testutil, ./testblockutil, ./testutil, ./testblockutil,
../beacon_chain/spec/[beaconstate, crypto, datatypes, digest, helpers, validator], ../beacon_chain/spec/[digest, validator],
../beacon_chain/[beacon_node_types, attestation_pool, block_pool, extras, state_transition, ssz] ../beacon_chain/[beacon_node_types, attestation_pool, block_pool, state_transition],
../beacon_chain/spec/datatypes,
../beacon_chain/ssz
when const_preset == "minimal": # Too much stack space used on mainnet when const_preset == "minimal": # Too much stack space used on mainnet
suite "Attestation pool processing" & preset(): suite "Attestation pool processing" & preset():

View File

@ -11,7 +11,7 @@ import
options, sequtils, unittest, chronicles, options, sequtils, unittest, chronicles,
./testutil, ./testblockutil, ./testutil, ./testblockutil,
../beacon_chain/spec/[datatypes, digest, helpers, validator], ../beacon_chain/spec/[datatypes, digest, helpers, validator],
../beacon_chain/[beacon_node_types, block_pool, beacon_chain_db, extras, ssz] ../beacon_chain/[beacon_node_types, block_pool, ssz]
suite "BlockRef and helpers" & preset(): suite "BlockRef and helpers" & preset():
timedTest "isAncestorOf sanity" & preset(): timedTest "isAncestorOf sanity" & preset():

View File

@ -1,3 +1,5 @@
{.used.}
import import
net, unittest, testutil, net, unittest, testutil,
eth/keys, eth/p2p/enode, libp2p/multiaddress, eth/keys, eth/p2p/enode, libp2p/multiaddress,

View File

@ -1,5 +1,5 @@
# beacon_chain # beacon_chain
# Copyright (c) 2019 Status Research & Development GmbH # Copyright (c) 2019-2020 Status Research & Development GmbH
# Licensed and distributed under either of # Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * 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). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
@ -7,7 +7,7 @@
{.used.} {.used.}
import options, hashes, unittest import options, unittest
import ./testutil import ./testutil
import chronos import chronos
import ../beacon_chain/peer_pool, ../beacon_chain/sync_manager import ../beacon_chain/peer_pool, ../beacon_chain/sync_manager