Skip to content

Commit 2a23b80

Browse files
outbound_payment: remove unused cltv delta var
1 parent 6d6a86c commit 2a23b80

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

@@ -1048,7 +1047,6 @@ impl OutboundPayments {
10481047
let mut has_ok = false;
10491048
let mut has_err = false;
10501049
let mut pending_amt_unsent = 0;
1051-
let mut max_unsent_cltv_delta = 0;
10521050
for (res, path) in results.iter().zip(route.paths.iter()) {
10531051
if res.is_ok() { has_ok = true; }
10541052
if res.is_err() { has_err = true; }
@@ -1059,7 +1057,6 @@ impl OutboundPayments {
10591057
has_ok = true;
10601058
} else if res.is_err() {
10611059
pending_amt_unsent += path.last().unwrap().fee_msat;
1062-
max_unsent_cltv_delta = cmp::max(max_unsent_cltv_delta, path.last().unwrap().cltv_expiry_delta);
10631060
}
10641061
}
10651062
if has_err && has_ok {

0 commit comments

Comments
 (0)