]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Remove unused temporaries.
authorChris Waterson <waterson@gmail.com>
Wed, 6 Sep 2023 17:52:51 +0000 (10:52 -0700)
committerChris Waterson <waterson@gmail.com>
Wed, 25 Oct 2023 16:23:13 +0000 (09:23 -0700)
lightning/src/ln/channel.rs

index 8e03bf3ac550c351d3292df26eac031df341458a..9c984c8e2f217c211502ff7e67afa7d4a4255c39 100644 (file)
@@ -6040,8 +6040,6 @@ impl<SP: Deref> OutboundV1Channel<SP> 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<SP: Deref> InboundV1Channel<SP> 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());