From a786eb8fe07ccc19fec5d40d4ed1cc0001f7e069 Mon Sep 17 00:00:00 2001 From: Sosthene Date: Sat, 30 Nov 2024 20:04:06 +0100 Subject: [PATCH] Remove is_linked() and is_linking() from device --- src/device.rs | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/device.rs b/src/device.rs index eb35653..911ffba 100644 --- a/src/device.rs +++ b/src/device.rs @@ -3,7 +3,7 @@ use tsify::Tsify; use wasm_bindgen::prelude::*; use sp_client::{ - bitcoin::{consensus::serialize, OutPoint}, silentpayments::utils::SilentPaymentAddress, spclient::SpWallet + bitcoin::OutPoint, silentpayments::utils::SilentPaymentAddress, spclient::SpWallet }; use crate::pcd::Member; @@ -35,20 +35,6 @@ impl Device { &mut self.sp_wallet } - pub fn is_linking(&self) -> bool { - match self.pairing_process_commitment { - Some(ref value) => serialize(value).iter().all(|&b| b == 0), - None => false, - } - } - - pub fn is_linked(&self) -> bool { - match self.pairing_process_commitment { - Some(ref value) => !serialize(value).iter().all(|&b| b == 0), - None => false, - } - } - pub fn get_pairing_commitment(&self) -> Option { self.pairing_process_commitment.clone() }