Skip to content

Commit

Permalink
removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Sajjon committed Jul 3, 2024
1 parent 6d919f5 commit aed806b
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/types/hd_signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@ impl HDSignature {
Self::with_details(input, signature)
}

pub fn produced_signing_with(
intent_hash: IntentHash,
owned_factor_instance: OwnedFactorInstance,
) -> Self {
let input = HDSignatureInput::new(intent_hash, owned_factor_instance);
Self::produced_signing_with_input(input)
}

/// Constructs a HDSignature from an already produced `Signature`.
fn with_details(input: HDSignatureInput, signature: Signature) -> Self {
Self { input, signature }
Expand All @@ -47,17 +39,14 @@ impl HDSignature {
.factor_instance()
.factor_source_id
}

pub fn used_same_input_as(&self, other: &Self) -> bool {
self.input == other.input
}
}

impl HasSampleValues for HDSignature {
fn sample() -> Self {
let input = HDSignatureInput::sample();
Self::produced_signing_with_input(input)
}

fn sample_other() -> Self {
let input = HDSignatureInput::sample_other();
Self::produced_signing_with_input(input)
Expand Down

0 comments on commit aed806b

Please sign in to comment.