From 85fa6e1a33170217c5855844c85ec75b7d0f9da5 Mon Sep 17 00:00:00 2001 From: Steve Degosserie Date: Mon, 27 Nov 2023 13:48:50 +0100 Subject: [PATCH] Remove unused impls --- runtime/trappist/src/impls.rs | 37 ----------------------------------- runtime/trappist/src/lib.rs | 2 +- 2 files changed, 1 insertion(+), 38 deletions(-) diff --git a/runtime/trappist/src/impls.rs b/runtime/trappist/src/impls.rs index e8ce95f9..fa8b604e 100644 --- a/runtime/trappist/src/impls.rs +++ b/runtime/trappist/src/impls.rs @@ -76,43 +76,6 @@ where } } -pub struct RuntimeBlackListedCalls; -impl Contains for RuntimeBlackListedCalls { - fn contains(call: &RuntimeCall) -> bool { - !matches!( - call, - RuntimeCall::Balances(_) - | RuntimeCall::Assets(_) - | RuntimeCall::Dex(_) - | RuntimeCall::PolkadotXcm(_) - | RuntimeCall::Treasury(_) - | RuntimeCall::Contracts(_) - | RuntimeCall::Uniques(_) - | RuntimeCall::AssetRegistry(_) - ) - } -} - -pub struct LockdownDmpHandler; -impl DmpMessageHandler for LockdownDmpHandler { - fn handle_dmp_messages( - _iter: impl Iterator)>, - limit: Weight, - ) -> Weight { - DmpQueue::handle_dmp_messages(_iter, limit) - } -} - -pub struct XcmExecutionManager {} -impl xcm_primitives::PauseXcmExecution for XcmExecutionManager { - fn suspend_xcm_execution() -> DispatchResult { - XcmpQueue::suspend_xcm_execution(RuntimeOrigin::root()) - } - fn resume_xcm_execution() -> DispatchResult { - XcmpQueue::resume_xcm_execution(RuntimeOrigin::root()) - } -} - #[cfg(test)] mod tests { use frame_support::{ diff --git a/runtime/trappist/src/lib.rs b/runtime/trappist/src/lib.rs index 233bdfc7..30d8292d 100644 --- a/runtime/trappist/src/lib.rs +++ b/runtime/trappist/src/lib.rs @@ -67,7 +67,7 @@ use sp_version::RuntimeVersion; use xcm::latest::prelude::BodyId; use constants::{currency::*, fee::WeightToFee}; -use impls::{DealWithFees, LockdownDmpHandler, RuntimeBlackListedCalls, XcmExecutionManager}; +use impls::DealWithFees; use xcm_config::{ CollatorSelectionUpdateOrigin, RelayLocation, TrustBackedAssetsConvertedConcreteId, };