--- a/runtime/common/mod.rs +++ b/runtime/common/mod.rs @@ -22,7 +22,6 @@ pub mod instance; pub mod maintenance; pub mod runtime_apis; -pub mod xcm; #[cfg(feature = "scheduler")] pub mod scheduler; --- a/runtime/common/xcm.rs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2019-2022 Unique Network (Gibraltar) Ltd. -// This file is part of Unique Network. - -// Unique Network is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// Unique Network is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with Unique Network. If not, see . - -use sp_std::{vec::Vec, marker::PhantomData}; -use xcm::latest::MultiLocation; -use frame_support::traits::Get; - -pub struct OverridableAllowedLocations(PhantomData<(T, L)>) -where - T: pallet_configuration::Config, - L: Get>; - -impl Get> for OverridableAllowedLocations -where - T: pallet_configuration::Config, - L: Get>, -{ - fn get() -> Vec { - >::get() - .map(|bounded| bounded.into_inner()) - .unwrap_or_else(|| L::get()) - } -}