]> Untitled Git - bdk/commitdiff
Remove unused code
authorAlekos Filini <alekos.filini@gmail.com>
Tue, 25 Oct 2022 10:14:36 +0000 (12:14 +0200)
committerAlekos Filini <alekos.filini@gmail.com>
Tue, 25 Oct 2022 10:14:36 +0000 (12:14 +0200)
src/descriptor/mod.rs

index aced91ca9a89c1814878c936ff7563025325a625..c8f4d29dc84d5d5068f86259ca956abb6a82d0f0 100644 (file)
@@ -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<T> XKeyUtils for DescriptorXKey<T>
 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,