From 6955dc9f12fa513da8f838e589bed0b3a56281ca Mon Sep 17 00:00:00 2001 From: Keagan McClelland Date: Fri, 1 Dec 2023 17:18:57 -0800 Subject: [PATCH] chancloser: remove ProcessCloseMsg --- lnwallet/chancloser/chancloser.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lnwallet/chancloser/chancloser.go b/lnwallet/chancloser/chancloser.go index 5d84c64a7..d33bfc4f0 100644 --- a/lnwallet/chancloser/chancloser.go +++ b/lnwallet/chancloser/chancloser.go @@ -879,20 +879,6 @@ func (c *ChanCloser) ReceiveClosingSigned( } } -// ProcessCloseMsg attempts to process the next message in the closing series. -// This method will update the state accordingly and return two primary values: -// the next set of messages to be sent, and a bool indicating if the fee -// negotiation process has completed. If the second value is true, then this -// means the ChanCloser can be garbage collected. -func (c *ChanCloser) ProcessCloseMsg(msg lnwire.Message) ([]lnwire.Message, - bool, error) { - - switch c.state { - default: - return nil, false, ErrInvalidState - } -} - // proposeCloseSigned attempts to propose a new signature for the closing // transaction for a channel based on the prior fee negotiations and our current // compromise fee.