From 7cd783d7bbb0c8c4ab039297a0c774ba42f81e97 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Tue, 15 May 2018 15:15:42 +0200 Subject: [PATCH] lnwallet/channel: remove unused method DeleteState --- lnwallet/channel.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lnwallet/channel.go b/lnwallet/channel.go index 8e6ec7f7d..45f26bc4c 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -5580,13 +5580,6 @@ func (lc *LightningChannel) CompleteCooperativeClose(localSig, remoteSig []byte, return closeTx, ourBalance, nil } -// DeleteState deletes all state concerning the channel from the underlying -// database, only leaving a small summary describing metadata of the -// channel's lifetime. -func (lc *LightningChannel) DeleteState(c *channeldb.ChannelCloseSummary) error { - return lc.channelState.CloseChannel(c) -} - // AvailableBalance returns the current available balance within the channel. // By available balance, we mean that if at this very instance s new commitment // were to be created which evals all the log entries, what would our available