From: Chris Waterson Date: Wed, 6 Sep 2023 17:52:51 +0000 (-0700) Subject: Remove unused temporaries. X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=242c2f5bb33000c7dd56aa8ee85933283ff1a98a;p=rust-lightning Remove unused temporaries. --- diff --git a/lightning/src/ln/channel.rs b/lightning/src/ln/channel.rs index 8e03bf3ac..9c984c8e2 100644 --- a/lightning/src/ln/channel.rs +++ b/lightning/src/ln/channel.rs @@ -6040,8 +6040,6 @@ impl OutboundV1Channel where SP::Target: SignerProvider { self.context.channel_transaction_parameters.funding_outpoint = Some(funding_txo); self.context.holder_signer.as_mut().provide_channel_parameters(&self.context.channel_transaction_parameters); - let temporary_channel_id = self.context.channel_id; - // Now that we're past error-generating stuff, update our local state: self.context.channel_state = ChannelState::FundingCreated as u32; @@ -6821,7 +6819,7 @@ impl InboundV1Channel where SP::Target: SignerProvider { let mut channel = Channel { context: self.context, }; - let channel_id = channel.context.channel_id.clone(); + let need_channel_ready = channel.check_get_channel_ready(0).is_some(); channel.monitor_updating_paused(false, false, need_channel_ready, Vec::new(), Vec::new(), Vec::new());