--- a/runtime/opal/src/xcm_barrier.rs
+++ b/runtime/opal/src/xcm_barrier.rs
@@ -15,30 +15,9 @@
// along with Unique Network. If not, see .
use frame_support::traits::Everything;
-use xcm::latest::{Weight, MultiLocation};
-use xcm::v3::Instruction;
use xcm_builder::{AllowTopLevelPaidExecutionFrom, TakeWeightCredit};
-use xcm_executor::traits::ShouldExecute;
-/// Execution barrier that just takes `max_weight` from `weight_credit`.
-///
-/// Useful to allow XCM execution by local chain users via extrinsics.
-/// E.g. `pallet_xcm::reserve_asset_transfer` to transfer a reserve asset
-/// out of the local chain to another one.
-pub struct AllowAllDebug;
-impl ShouldExecute for AllowAllDebug {
- fn should_execute(
- _origin: &MultiLocation,
- _message: &mut [Instruction],
- _max_weight: Weight,
- _weight_credit: &mut Weight,
- ) -> Result<(), ()> {
- Ok(())
- }
-}
-
pub type Barrier = (
TakeWeightCredit,
AllowTopLevelPaidExecutionFrom,
- AllowAllDebug,
);