Skip to content

Commit c7a43d9

Browse files
committed
Remove unused code
1 parent 1ffd59d commit c7a43d9

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/descriptor/mod.rs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -316,35 +316,13 @@ pub trait ExtractPolicy {
316316
}
317317

318318
pub(crate) trait XKeyUtils {
319-
fn full_path(&self, append: &[ChildNumber]) -> DerivationPath;
320319
fn root_fingerprint(&self, secp: &SecpCtx) -> Fingerprint;
321320
}
322321

323322
impl<T> XKeyUtils for DescriptorXKey<T>
324323
where
325324
T: InnerXKey,
326325
{
327-
fn full_path(&self, append: &[ChildNumber]) -> DerivationPath {
328-
let full_path = match self.origin {
329-
Some((_, ref path)) => path
330-
.into_iter()
331-
.chain(self.derivation_path.into_iter())
332-
.cloned()
333-
.collect(),
334-
None => self.derivation_path.clone(),
335-
};
336-
337-
if self.wildcard != Wildcard::None {
338-
full_path
339-
.into_iter()
340-
.chain(append.iter())
341-
.cloned()
342-
.collect()
343-
} else {
344-
full_path
345-
}
346-
}
347-
348326
fn root_fingerprint(&self, secp: &SecpCtx) -> Fingerprint {
349327
match self.origin {
350328
Some((fingerprint, _)) => fingerprint,

0 commit comments

Comments
 (0)