From 1b96f9829689dd69c60d61bdfac02a581bc73e78 Mon Sep 17 00:00:00 2001 From: Niklas Adolfsson Date: Mon, 3 Feb 2020 23:26:43 +0100 Subject: [PATCH] chore: remove unused dependencies (#11432) * fix: compiler warnings * chore: remove unused dependencies --- Cargo.lock | 1 - ethcore/account-state/Cargo.toml | 1 - ethcore/builtin/Cargo.toml | 2 +- ethcore/engines/validator-set/src/contract.rs | 2 +- ethcore/sync/src/light_sync/sync_round.rs | 2 +- ipfs/Cargo.toml | 1 - util/EIP-152/Cargo.toml | 2 +- 7 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index beadfb1f2..37fc15d7e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -36,7 +36,6 @@ dependencies = [ "rlp 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", "rlp_compress 0.1.0", "serde 1.0.103 (registry+https://github.com/rust-lang/crates.io-index)", - "trace 0.1.0", "trie-db 0.18.0 (registry+https://github.com/rust-lang/crates.io-index)", "trie-vm-factories 0.1.0", ] diff --git a/ethcore/account-state/Cargo.toml b/ethcore/account-state/Cargo.toml index 4aa43f604..264864e29 100644 --- a/ethcore/account-state/Cargo.toml +++ b/ethcore/account-state/Cargo.toml @@ -26,7 +26,6 @@ parking_lot = "0.9" pod = { path = "../pod" } rlp = "0.4.0" serde = { version = "1.0", features = ["derive"] } -trace = { path = "../trace" } trie-db = "0.18.0" [dev-dependencies] diff --git a/ethcore/builtin/Cargo.toml b/ethcore/builtin/Cargo.toml index d36a3e762..0ce7f315e 100644 --- a/ethcore/builtin/Cargo.toml +++ b/ethcore/builtin/Cargo.toml @@ -14,10 +14,10 @@ ethereum-types = "0.8.0" ethjson = { path = "../../json" } keccak-hash = "0.4.0" log = "0.4" -macros = { path = "../../util/macros" } num = { version = "0.1", default-features = false, features = ["bigint"] } parity-bytes = "0.1" parity-crypto = { version = "0.4.2", features = ["publickey"] } [dev-dependencies] hex-literal = "0.2.1" +macros = { path = "../../util/macros" } diff --git a/ethcore/engines/validator-set/src/contract.rs b/ethcore/engines/validator-set/src/contract.rs index 6821889f6..bcc2fd176 100644 --- a/ethcore/engines/validator-set/src/contract.rs +++ b/ethcore/engines/validator-set/src/contract.rs @@ -22,7 +22,7 @@ use std::sync::Weak; use parity_bytes::Bytes; use ethabi_contract::use_contract; use ethereum_types::{H256, U256, Address}; -use log::{info, warn, trace}; +use log::{warn, trace}; use machine::Machine; use parking_lot::RwLock; use common_types::{ diff --git a/ethcore/sync/src/light_sync/sync_round.rs b/ethcore/sync/src/light_sync/sync_round.rs index d6bcea214..2ec297333 100644 --- a/ethcore/sync/src/light_sync/sync_round.rs +++ b/ethcore/sync/src/light_sync/sync_round.rs @@ -234,7 +234,7 @@ impl Fetcher { } // state transition not triggered until drain is finished. - (SyncRound::Fetch(self)) + SyncRound::Fetch(self) } } } diff --git a/ipfs/Cargo.toml b/ipfs/Cargo.toml index adb42f9e5..4d35547aa 100644 --- a/ipfs/Cargo.toml +++ b/ipfs/Cargo.toml @@ -9,7 +9,6 @@ edition = "2018" [dependencies] client-traits = { path = "../ethcore/client-traits" } common-types = { path = "../ethcore/types" } -ethcore = { path = "../ethcore" } bytes = { package = "parity-bytes", version = "0.1"} ethereum-types = "0.8.0" jsonrpc-core = "14.0.3" diff --git a/util/EIP-152/Cargo.toml b/util/EIP-152/Cargo.toml index fb474919f..1f7131fe4 100644 --- a/util/EIP-152/Cargo.toml +++ b/util/EIP-152/Cargo.toml @@ -11,11 +11,11 @@ license = "GPL-3.0" edition = "2018" [dependencies] -rustc-hex = "2.0.1" arrayref = "0.3.5" [dev-dependencies] criterion = "0.3" +rustc-hex = "2.0.1" [[bench]] name = "bench"