lnwallet: remove dead code

This commit is contained in:
Elle Mouton 2023-02-22 09:32:24 +02:00
parent b5d281dca8
commit 15da50df10
No known key found for this signature in database
GPG key ID: D7D916376026F177

View file

@ -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()