From f53feb55e4b6234c54da18af26dc4adb4571bf17 Mon Sep 17 00:00:00 2001 From: Tarek Mohamed Abdalla Date: Tue, 14 Jan 2025 11:57:57 +0200 Subject: [PATCH] refactor: remove unused imports --- runtime/moonbase/src/lib.rs | 6 ++---- runtime/moonbeam/src/lib.rs | 5 +---- runtime/moonriver/src/lib.rs | 5 +---- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/runtime/moonbase/src/lib.rs b/runtime/moonbase/src/lib.rs index fe6d5df645..bd8036ff48 100644 --- a/runtime/moonbase/src/lib.rs +++ b/runtime/moonbase/src/lib.rs @@ -60,14 +60,13 @@ use frame_support::{ construct_runtime, dispatch::{DispatchClass, GetDispatchInfo, PostDispatchInfo}, ensure, - pallet_prelude::{DispatchResult, PhantomData}, + pallet_prelude::{DispatchResult}, parameter_types, traits::{ fungible::{Balanced, Credit, HoldConsideration, Inspect}, - tokens::imbalance::ResolveTo, tokens::{PayFromAccount, UnityAssetBalanceConversion}, ConstBool, ConstU128, ConstU16, ConstU32, ConstU64, ConstU8, Contains, EitherOfDiverse, - EqualPrivilegeOnly, FindAuthor, Imbalance, InstanceFilter, LinearStoragePrice, OnFinalize, + EqualPrivilegeOnly, FindAuthor, InstanceFilter, LinearStoragePrice, OnFinalize, OnUnbalanced, }, weights::{ @@ -125,7 +124,6 @@ use xcm_runtime_apis::{ use smallvec::smallvec; use sp_runtime::serde::{Deserialize, Serialize}; -use sp_runtime::traits::TypedGet; #[cfg(any(feature = "std", test))] pub use sp_runtime::BuildStorage; diff --git a/runtime/moonbeam/src/lib.rs b/runtime/moonbeam/src/lib.rs index 75d8fa1bf5..8f358b52d2 100644 --- a/runtime/moonbeam/src/lib.rs +++ b/runtime/moonbeam/src/lib.rs @@ -37,7 +37,6 @@ use fp_rpc::TransactionStatus; use cumulus_primitives_core::{relay_chain, AggregateMessageOrigin}; #[cfg(feature = "std")] pub use fp_evm::GenesisAccount; -use frame_support::pallet_prelude::{PhantomData, TypedGet}; pub use frame_support::traits::Get; use frame_support::{ construct_runtime, @@ -47,10 +46,9 @@ use frame_support::{ parameter_types, traits::{ fungible::{Balanced, Credit, HoldConsideration, Inspect}, - tokens::imbalance::ResolveTo, tokens::{PayFromAccount, UnityAssetBalanceConversion}, ConstBool, ConstU128, ConstU16, ConstU32, ConstU64, ConstU8, Contains, EitherOfDiverse, - EqualPrivilegeOnly, Imbalance, InstanceFilter, LinearStoragePrice, OnFinalize, + EqualPrivilegeOnly, InstanceFilter, LinearStoragePrice, OnFinalize, OnUnbalanced, }, weights::{ @@ -76,7 +74,6 @@ use pallet_evm::{ }; pub use pallet_parachain_staking::{weights::WeightInfo, InflationInfo, Range}; use pallet_transaction_payment::{FungibleAdapter, Multiplier, TargetedFeeAdjustment}; -use pallet_treasury::TreasuryAccountId; use parity_scale_codec::{Decode, Encode, MaxEncodedLen}; use scale_info::TypeInfo; use serde::{Deserialize, Serialize}; diff --git a/runtime/moonriver/src/lib.rs b/runtime/moonriver/src/lib.rs index 01bfbe8bbe..3a378c87ff 100644 --- a/runtime/moonriver/src/lib.rs +++ b/runtime/moonriver/src/lib.rs @@ -38,7 +38,6 @@ use fp_rpc::TransactionStatus; use cumulus_primitives_core::{relay_chain, AggregateMessageOrigin}; #[cfg(feature = "std")] pub use fp_evm::GenesisAccount; -use frame_support::pallet_prelude::{PhantomData, TypedGet}; pub use frame_support::traits::Get; use frame_support::{ construct_runtime, @@ -48,10 +47,9 @@ use frame_support::{ parameter_types, traits::{ fungible::{Balanced, Credit, HoldConsideration, Inspect}, - tokens::imbalance::ResolveTo, tokens::{PayFromAccount, UnityAssetBalanceConversion}, ConstBool, ConstU128, ConstU16, ConstU32, ConstU64, ConstU8, Contains, EitherOfDiverse, - EqualPrivilegeOnly, Imbalance, InstanceFilter, LinearStoragePrice, OnFinalize, + EqualPrivilegeOnly, InstanceFilter, LinearStoragePrice, OnFinalize, OnUnbalanced, }, weights::{ @@ -80,7 +78,6 @@ use pallet_evm::{ }; pub use pallet_parachain_staking::{weights::WeightInfo, InflationInfo, Range}; use pallet_transaction_payment::{FungibleAdapter, Multiplier, TargetedFeeAdjustment}; -use pallet_treasury::TreasuryAccountId; use parity_scale_codec::{Decode, Encode, MaxEncodedLen}; use scale_info::TypeInfo; use sp_api::impl_runtime_apis;