Skip to content

Commit 7f626c8

Browse files
committed
Remove dead code after deprecating HolderSignedTx
1 parent ed7ac5b commit 7f626c8

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -355,19 +355,6 @@ impl HolderCommitment {
355355
}
356356
}
357357

358-
impl HolderSignedTx {
359-
fn non_dust_htlcs(&self) -> Vec<HTLCOutputInCommitment> {
360-
self.htlc_outputs.iter().filter_map(|(htlc, _, _)| {
361-
if htlc.transaction_output_index.is_some() {
362-
Some(htlc.clone())
363-
} else {
364-
None
365-
}
366-
})
367-
.collect()
368-
}
369-
}
370-
371358
/// We use this to track static counterparty commitment transaction data and to generate any
372359
/// justice or 2nd-stage preimage/timeout transactions.
373360
#[derive(Clone, PartialEq, Eq)]

lightning/src/ln/channelmanager.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -718,18 +718,6 @@ impl HTLCSource {
718718
}
719719
}
720720

721-
#[cfg(debug_assertions)]
722-
/// Checks whether this HTLCSource could possibly match the given HTLC output in a commitment
723-
/// transaction. Useful to ensure different datastructures match up.
724-
pub(crate) fn possibly_matches_output(&self, htlc: &super::chan_utils::HTLCOutputInCommitment) -> bool {
725-
if let HTLCSource::OutboundRoute { first_hop_htlc_msat, .. } = self {
726-
*first_hop_htlc_msat == htlc.amount_msat
727-
} else {
728-
// There's nothing we can check for forwarded HTLCs
729-
true
730-
}
731-
}
732-
733721
/// Returns the CLTV expiry of the inbound HTLC (i.e. the source referred to by this object),
734722
/// if the source was a forwarded HTLC and the HTLC was first forwarded on LDK 0.1.1 or later.
735723
pub(crate) fn inbound_htlc_expiry(&self) -> Option<u32> {

0 commit comments

Comments
 (0)