From 15da50df104119ff06c89dc2be63129de9d24530 Mon Sep 17 00:00:00 2001 From: Elle Mouton Date: Wed, 22 Feb 2023 09:32:24 +0200 Subject: [PATCH] lnwallet: remove dead code --- lnwallet/transactions_test.go | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/lnwallet/transactions_test.go b/lnwallet/transactions_test.go index 6ce0f527e..b77d9cf8c 100644 --- a/lnwallet/transactions_test.go +++ b/lnwallet/transactions_test.go @@ -378,27 +378,6 @@ func testVectors(t *testing.T, chanType channeldb.ChannelType, test testCase) { } } -// htlcViewFromHTLCs constructs an htlcView of PaymentDescriptors from a slice -// of channeldb.HTLC structs. -func htlcViewFromHTLCs(htlcs []channeldb.HTLC) *htlcView { - var theHTLCView htlcView - for _, htlc := range htlcs { - paymentDesc := &PaymentDescriptor{ - RHash: htlc.RHash, - Timeout: htlc.RefundTimeout, - Amount: htlc.Amt, - } - if htlc.Incoming { - theHTLCView.theirUpdates = - append(theHTLCView.theirUpdates, paymentDesc) - } else { - theHTLCView.ourUpdates = - append(theHTLCView.ourUpdates, paymentDesc) - } - } - return &theHTLCView -} - func TestCommitTxStateHint(t *testing.T) { t.Parallel()