diff --git a/pallets/capacity/src/lib.rs b/pallets/capacity/src/lib.rs index 900bc57470..234a80b2a6 100644 --- a/pallets/capacity/src/lib.rs +++ b/pallets/capacity/src/lib.rs @@ -583,12 +583,6 @@ impl Pallet { .min(proposed_amount) } - // Calculates the total amount of tokens that are currently unlocked for the given staker. - pub(crate) fn get_unlocking_total_for(staker: &T::AccountId) -> (BalanceOf, Weight) { - let unlocks = Self::get_unstake_unlocking_for(staker).unwrap_or_default(); - (unlock_chunks_total::(&unlocks), T::DbWeight::get().reads(1)) - } - pub(crate) fn do_withdraw_unstaked( staker: &T::AccountId, ) -> Result, DispatchError> { diff --git a/pallets/capacity/src/migration/v2.rs b/pallets/capacity/src/migration/v2.rs index 22e7f6961b..431f616a1b 100644 --- a/pallets/capacity/src/migration/v2.rs +++ b/pallets/capacity/src/migration/v2.rs @@ -1,7 +1,6 @@ use crate::{ types::{StakingDetails, UnlockChunk}, BalanceOf, Config, Pallet, StakingAccountLedger, StakingType, UnlockChunkList, UnstakeUnlocks, - STORAGE_VERSION_V2, }; use frame_support::{ pallet_prelude::{GetStorageVersion, Weight},