From b55841ba24830647bac8afd57ba34a59006cd065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Andr=C3=A9s=20Dorado=20Su=C3=A1rez?= Date: Tue, 9 Jan 2024 17:21:28 -0500 Subject: [PATCH] fix: unused warnings - [node/chain_spec:kreivo]: allowed dead_code on unused functions + removed useless .into() calls - [node/chain_spec:service]: comment out unused import - [runtime]: comment out unused imports --- node/src/chain_spec/kreivo.rs | 8 +++++--- node/src/service.rs | 4 +++- runtime/kreivo/src/weights/mod.rs | 4 ++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/node/src/chain_spec/kreivo.rs b/node/src/chain_spec/kreivo.rs index c8f4a3cf..5424d50a 100644 --- a/node/src/chain_spec/kreivo.rs +++ b/node/src/chain_spec/kreivo.rs @@ -33,7 +33,7 @@ pub fn kreivo_rococo_chain_spec_local() -> ChainSpec { Extensions { relay_chain: "rococo-local".into(), // You MUST set this to the correct network! - para_id: KREIVO_PARA_ID.into(), + para_id: KREIVO_PARA_ID, }, ) .with_name("Kreivo Local-Rococo Local") @@ -83,7 +83,7 @@ pub fn kreivo_kusama_chain_spec_local() -> ChainSpec { Extensions { relay_chain: "rococo-local".into(), // You MUST set this to the correct network! - para_id: KREIVO_PARA_ID.into(), + para_id: KREIVO_PARA_ID, }, ) .with_name("Kreivo Local-Rococo Local") @@ -121,6 +121,7 @@ pub fn kreivo_kusama_chain_spec_local() -> ChainSpec { .build() } +#[allow(dead_code)] pub fn local_testnet_config() -> ChainSpec { // Give your base currency a unit name and decimal places let mut properties = sc_chain_spec::Properties::new(); @@ -187,7 +188,7 @@ pub fn kreivo_kusama_chain_spec() -> ChainSpec { Extensions { relay_chain: "kusama".into(), // You MUST set this to the correct network! - para_id: KREIVO_PARA_ID.into(), + para_id: KREIVO_PARA_ID, }, ) .with_name("Kreivo") @@ -255,6 +256,7 @@ fn testnet_genesis( }) } +#[allow(dead_code)] fn genesis( invulnerables: Vec<(AccountId, AuraId)>, endowed_accounts: Vec, diff --git a/node/src/service.rs b/node/src/service.rs index d413a229..37c2d09b 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -36,7 +36,9 @@ use cumulus_primitives_core::{ use cumulus_relay_chain_interface::{OverseerHandle, RelayChainInterface}; use futures::lock::Mutex; use jsonrpsee::RpcModule; -pub use parachains_common::{AccountId, AssetIdForTrustBackedAssets as AssetId, Balance, Block, Hash, Header, Nonce}; +// pub use parachains_common::{AccountId, AssetIdForTrustBackedAssets as +// AssetId, Balance, Block, Hash, Header, Nonce}; +pub use parachains_common::{AccountId, Balance, Block, Hash, Header, Nonce}; use parity_scale_codec::Codec; use sc_consensus::{ import_queue::{BasicQueue, Verifier as VerifierT}, diff --git a/runtime/kreivo/src/weights/mod.rs b/runtime/kreivo/src/weights/mod.rs index 79758803..681011a4 100644 --- a/runtime/kreivo/src/weights/mod.rs +++ b/runtime/kreivo/src/weights/mod.rs @@ -27,5 +27,5 @@ pub mod xcm; pub use block_weights::constants::BlockExecutionWeight; pub use extrinsic_weights::constants::ExtrinsicBaseWeight; -pub use paritydb_weights::constants::ParityDbWeight; -pub use rocksdb_weights::constants::RocksDbWeight; +// pub use paritydb_weights::constants::ParityDbWeight; +// pub use rocksdb_weights::constants::RocksDbWeight;