From 45ccf688577805df28d6a7adffed86c8472439a9 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 20 Nov 2020 14:06:17 -0500 Subject: [PATCH] Drop unused variable and loop in channel_monitor_updated --- lightning/src/ln/channelmanager.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index 52bd8ad1c..9240e0edd 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -2593,7 +2593,6 @@ impl ChannelMana pub fn channel_monitor_updated(&self, funding_txo: &OutPoint, highest_applied_update_id: u64) { let _persistence_guard = PersistenceNotifierGuard::notify_on_drop(&self.total_consistency_lock, &self.persistence_notifier); - let mut close_results = Vec::new(); let mut htlc_forwards = Vec::new(); let mut htlc_failures = Vec::new(); let mut pending_events = Vec::new(); @@ -2668,10 +2667,6 @@ impl ChannelMana self.fail_htlc_backwards_internal(self.channel_state.lock().unwrap(), failure.0, &failure.1, failure.2); } self.forward_htlcs(&mut htlc_forwards[..]); - - for res in close_results.drain(..) { - self.finish_force_close_channel(res); - } } fn internal_open_channel(&self, counterparty_node_id: &PublicKey, their_features: InitFeatures, msg: &msgs::OpenChannel) -> Result<(), MsgHandleErrInternal> { -- 2.39.5