Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
Remove unused impls
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Degosserie committed Nov 27, 2023
1 parent 7a53d3c commit 85fa6e1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 38 deletions.
37 changes: 0 additions & 37 deletions runtime/trappist/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,43 +76,6 @@ where
}
}

pub struct RuntimeBlackListedCalls;
impl Contains<RuntimeCall> 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<Item = (RelayBlockNumber, Vec<u8>)>,
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::{
Expand Down
2 changes: 1 addition & 1 deletion runtime/trappist/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit 85fa6e1

Please sign in to comment.