Skip to content

Commit f8ac021

Browse files
committed
Drop the now-unused push_blockable_mon_update
1 parent d12ad9f commit f8ac021

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

lightning/src/ln/channel.rs

+5-13
Original file line numberDiff line numberDiff line change
@@ -4440,22 +4440,14 @@ impl<Signer: WriteableEcdsaChannelSigner> Channel<Signer> {
44404440
None
44414441
}
44424442

4443-
/// Pushes a new monitor update into our monitor update queue, returning whether it should be
4444-
/// immediately given to the user for persisting or if it should be held as blocked.
4445-
fn push_blockable_mon_update(&mut self, update: ChannelMonitorUpdate) -> bool {
4443+
/// Pushes a new monitor update into our monitor update queue, returning it if it should be
4444+
/// immediately given to the user for persisting or `None` if it should be held as blocked.
4445+
fn push_ret_blockable_mon_update(&mut self, update: ChannelMonitorUpdate)
4446+
-> Option<ChannelMonitorUpdate> {
44464447
let release_monitor = self.context.pending_monitor_updates.iter().all(|upd| !upd.blocked);
44474448
self.context.pending_monitor_updates.push(PendingChannelMonitorUpdate {
4448-
update, blocked: !release_monitor
4449+
update, blocked: !release_monitor,
44494450
});
4450-
release_monitor
4451-
}
4452-
4453-
/// Pushes a new monitor update into our monitor update queue, returning a reference to it if
4454-
/// it should be immediately given to the user for persisting or `None` if it should be held as
4455-
/// blocked.
4456-
fn push_ret_blockable_mon_update(&mut self, update: ChannelMonitorUpdate)
4457-
-> Option<ChannelMonitorUpdate> {
4458-
let release_monitor = self.push_blockable_mon_update(update);
44594451
if release_monitor { self.context.pending_monitor_updates.last().map(|upd| upd.update.clone()) } else { None }
44604452
}
44614453

0 commit comments

Comments
 (0)