diff --git a/pallets/commitments/src/lib.rs b/pallets/commitments/src/lib.rs index 4663b2647..d5d132034 100644 --- a/pallets/commitments/src/lib.rs +++ b/pallets/commitments/src/lib.rs @@ -173,15 +173,6 @@ pub mod pallet { Ok(()) } - - pub fn swap_commitment( netuid: u16, new_hotkey: T::AccountId, old_hotkey: T::AccountId ) { - if let Some(commitment) = >::take(netuid, &old_hotkey) { - >::insert(netuid, &new_hotkey, commitment); - } - if let Some(last_commit) = >::take(netuid, &old_hotkey) { - >::insert(netuid, &new_hotkey, last_commit); - } - } } }