Skip to content

Commit 2e82123

Browse files
outbound_payment: remove unused cltv delta var
1 parent 4b65f82 commit 2e82123

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lightning/src/ln/outbound_payment.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ use crate::util::time::Time;
2626
use crate::util::time::tests::SinceEpoch;
2727
use crate::util::ser::ReadableArgs;
2828

29-
use core::cmp;
3029
use core::fmt::{self, Display, Formatter};
3130
use core::ops::Deref;
3231

@@ -947,7 +946,6 @@ impl OutboundPayments {
947946
let mut has_ok = false;
948947
let mut has_err = false;
949948
let mut pending_amt_unsent = 0;
950-
let mut max_unsent_cltv_delta = 0;
951949
for (res, path) in results.iter().zip(route.paths.iter()) {
952950
if res.is_ok() { has_ok = true; }
953951
if res.is_err() { has_err = true; }
@@ -958,7 +956,6 @@ impl OutboundPayments {
958956
has_ok = true;
959957
} else if res.is_err() {
960958
pending_amt_unsent += path.last().unwrap().fee_msat;
961-
max_unsent_cltv_delta = cmp::max(max_unsent_cltv_delta, path.last().unwrap().cltv_expiry_delta);
962959
}
963960
}
964961
if has_err && has_ok {

0 commit comments

Comments
 (0)