Skip to content

Commit 8ad0014

Browse files
authored
fix unused imports (#192)
1 parent d397d5a commit 8ad0014

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

pallets/funding/src/instantiator.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,13 @@ use frame_support::{
3535
use frame_system::pallet_prelude::BlockNumberFor;
3636
use itertools::Itertools;
3737
use parity_scale_codec::Decode;
38-
use polimec_common::credentials::{Did, InvestorType};
38+
use polimec_common::credentials::{InvestorType};
3939
#[cfg(any(test, feature = "std", feature = "runtime-benchmarks"))]
4040
use polimec_common_test_utils::generate_did_from_account;
4141
use sp_arithmetic::{
4242
traits::{SaturatedConversion, Saturating, Zero},
4343
FixedPointNumber, Percent, Perquintill,
4444
};
45-
use sp_core::H256;
4645
use sp_runtime::{
4746
traits::{Member, One},
4847
DispatchError,
@@ -1619,7 +1618,6 @@ pub mod async_features {
16191618
use super::*;
16201619
use assert_matches2::assert_matches;
16211620
use futures::FutureExt;
1622-
use polimec_common::credentials::InvestorType;
16231621
use std::{
16241622
collections::HashMap,
16251623
sync::{

pallets/funding/src/lib.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ pub use crate::weights::WeightInfo;
119119
use frame_support::{
120120
traits::{
121121
tokens::{fungible, fungibles, Balance},
122-
AccountTouch, ConstU64, ContainsPair, Randomness,
122+
AccountTouch, ContainsPair, Randomness,
123123
},
124124
BoundedVec, PalletId,
125125
};
@@ -132,9 +132,8 @@ use polimec_common::{
132132
};
133133
use polkadot_parachain::primitives::Id as ParaId;
134134
use sp_arithmetic::traits::{One, Saturating};
135-
use sp_core::{ConstU128, ConstU32};
136135
use sp_runtime::{
137-
traits::{parameter_types, AccountIdConversion},
136+
traits::{AccountIdConversion},
138137
FixedPointNumber, FixedPointOperand, FixedU128,
139138
};
140139
use sp_std::{marker::PhantomData, prelude::*};

pallets/funding/src/types.rs

-3
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,10 @@ pub mod config_types {
158158

159159
pub mod storage_types {
160160
use crate::US_DOLLAR;
161-
use itertools::Itertools;
162161
use sp_arithmetic::{
163162
traits::{One, Saturating, Zero},
164163
Percent,
165164
};
166-
use sp_std::collections::btree_set::BTreeSet;
167-
168165
use super::*;
169166

170167
#[derive(Clone, Encode, Decode, Eq, PartialEq, RuntimeDebug, MaxEncodedLen, TypeInfo)]

runtimes/testnet/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub use parachains_common::{
3737
NORMAL_DISPATCH_RATIO, SLOT_DURATION,
3838
};
3939
use parity_scale_codec::Encode;
40-
use polimec_common::credentials::{EnsureInvestor, Institutional, Professional, Retail};
40+
use polimec_common::credentials::{EnsureInvestor};
4141

4242
// Polkadot imports
4343
use polkadot_runtime_common::{BlockHashCount, CurrencyToVote, SlowAdjustingFeeUpdate};

0 commit comments

Comments
 (0)