From c7a43d941fd0f457f615f2fe43e71586a253e46a Mon Sep 17 00:00:00 2001 From: Alekos Filini Date: Tue, 25 Oct 2022 12:14:36 +0200 Subject: [PATCH] Remove unused code --- src/descriptor/mod.rs | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/descriptor/mod.rs b/src/descriptor/mod.rs index aced91ca..c8f4d29d 100644 --- a/src/descriptor/mod.rs +++ b/src/descriptor/mod.rs @@ -316,7 +316,6 @@ pub trait ExtractPolicy { } pub(crate) trait XKeyUtils { - fn full_path(&self, append: &[ChildNumber]) -> DerivationPath; fn root_fingerprint(&self, secp: &SecpCtx) -> Fingerprint; } @@ -324,27 +323,6 @@ impl XKeyUtils for DescriptorXKey where T: InnerXKey, { - fn full_path(&self, append: &[ChildNumber]) -> DerivationPath { - let full_path = match self.origin { - Some((_, ref path)) => path - .into_iter() - .chain(self.derivation_path.into_iter()) - .cloned() - .collect(), - None => self.derivation_path.clone(), - }; - - if self.wildcard != Wildcard::None { - full_path - .into_iter() - .chain(append.iter()) - .cloned() - .collect() - } else { - full_path - } - } - fn root_fingerprint(&self, secp: &SecpCtx) -> Fingerprint { match self.origin { Some((fingerprint, _)) => fingerprint,