Remove unused code
This commit is contained in:
parent
1ffd59d469
commit
c7a43d941f
@ -316,7 +316,6 @@ pub trait ExtractPolicy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) trait XKeyUtils {
|
pub(crate) trait XKeyUtils {
|
||||||
fn full_path(&self, append: &[ChildNumber]) -> DerivationPath;
|
|
||||||
fn root_fingerprint(&self, secp: &SecpCtx) -> Fingerprint;
|
fn root_fingerprint(&self, secp: &SecpCtx) -> Fingerprint;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -324,27 +323,6 @@ impl<T> XKeyUtils for DescriptorXKey<T>
|
|||||||
where
|
where
|
||||||
T: InnerXKey,
|
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 {
|
fn root_fingerprint(&self, secp: &SecpCtx) -> Fingerprint {
|
||||||
match self.origin {
|
match self.origin {
|
||||||
Some((fingerprint, _)) => fingerprint,
|
Some((fingerprint, _)) => fingerprint,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user