Skip to content

Commit 7d95196

Browse files
committed
Mark unused AccountsForInflightHtlcs functions as unreachable
1 parent f7667f5 commit 7d95196

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

lightning-invoice/src/utils.rs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -576,21 +576,13 @@ impl<'a, S: Score> Score for AccountForInFlightHtlcs<'a, S> {
576576
}
577577
}
578578

579-
fn payment_path_failed(&mut self, path: &[&RouteHop], short_channel_id: u64) {
580-
self.scorer.payment_path_failed(path, short_channel_id)
581-
}
579+
fn payment_path_failed(&mut self, _path: &[&RouteHop], _short_channel_id: u64) { unreachable!() }
582580

583-
fn payment_path_successful(&mut self, path: &[&RouteHop]) {
584-
self.scorer.payment_path_successful(path)
585-
}
581+
fn payment_path_successful(&mut self, _path: &[&RouteHop]) { unreachable!() }
586582

587-
fn probe_failed(&mut self, path: &[&RouteHop], short_channel_id: u64) {
588-
self.scorer.probe_failed(path, short_channel_id)
589-
}
583+
fn probe_failed(&mut self, _path: &[&RouteHop], _short_channel_id: u64) { unreachable!() }
590584

591-
fn probe_successful(&mut self, path: &[&RouteHop]) {
592-
self.scorer.probe_successful(path)
593-
}
585+
fn probe_successful(&mut self, _path: &[&RouteHop]) { unreachable!() }
594586
}
595587

596588

0 commit comments

Comments
 (0)