From f48330830de690f1b553e7126c19518c481ce56f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojte=CC=8Cch=20Parka=CC=81n?= Date: Fri, 20 Dec 2024 15:57:41 +0100 Subject: [PATCH] remove unused imports --- node/src/lib.rs | 2 +- node/src/test_utils/mod.rs | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/node/src/lib.rs b/node/src/lib.rs index 4d072736a..ac4767ea1 100644 --- a/node/src/lib.rs +++ b/node/src/lib.rs @@ -45,6 +45,6 @@ mod stream_messages; mod stream_reader; mod stream_writer_sorted; mod stream_writer_unsorted; -pub mod test_utils; //TODO we should make some effort for collections of testing utils to be really test conditioned. +pub mod test_utils; pub mod tls_discriminator_factory; pub mod ui_gateway; diff --git a/node/src/test_utils/mod.rs b/node/src/test_utils/mod.rs index b18413e8f..22bdf672e 100644 --- a/node/src/test_utils/mod.rs +++ b/node/src/test_utils/mod.rs @@ -39,14 +39,11 @@ use crate::sub_lib::sequence_buffer::SequencedPacket; use crate::sub_lib::stream_key::StreamKey; use crate::sub_lib::wallet::Wallet; use crossbeam_channel::{unbounded, Receiver, Sender}; -use dirs::home_dir; use ethsign_crypto::Keccak256; use futures::sync::mpsc::SendError; use lazy_static::lazy_static; use masq_lib::constants::HTTP_PORT; -use masq_lib::test_utils::utils::{ - ensure_node_home_directory_exists, node_home_directory, TEST_DEFAULT_CHAIN, -}; +use masq_lib::test_utils::utils::TEST_DEFAULT_CHAIN; use rand::RngCore; use regex::Regex; use rustc_hex::ToHex; @@ -54,14 +51,12 @@ use serde_derive::{Deserialize, Serialize}; use std::collections::btree_set::BTreeSet; use std::collections::HashSet; use std::convert::From; -use std::env::current_dir; use std::fmt::Debug; use std::hash::Hash; use std::io::ErrorKind; use std::io::Read; use std::iter::repeat; use std::net::{Shutdown, TcpStream}; -use std::path::PathBuf; use std::str::FromStr; use std::sync::{Arc, Mutex}; use std::thread;