From 031c792b569382c1282187163a04b59692a940f3 Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Wed, 19 Nov 2025 21:51:40 -0300 Subject: [PATCH] lncli: remove dead code Variable chanPoints was accumulated but never used. Found with staticcheck tool. The code is dead since 8f5d78c875b8eca436f7ee2e86e743afee262386 --- cmd/commands/commands.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/cmd/commands/commands.go b/cmd/commands/commands.go index fd8dc2092a1..f0b4bf6036b 100644 --- a/cmd/commands/commands.go +++ b/cmd/commands/commands.go @@ -2972,19 +2972,6 @@ func exportChanBackup(ctx *cli.Context) error { // TODO(roasbeef): support for export | restore ? - var chanPoints []string - for _, chanPoint := range chanBackup.MultiChanBackup.ChanPoints { - txid, err := chainhash.NewHash(chanPoint.GetFundingTxidBytes()) - if err != nil { - return err - } - - chanPoints = append(chanPoints, wire.OutPoint{ - Hash: *txid, - Index: chanPoint.OutputIndex, - }.String()) - } - printRespJSON(chanBackup) return nil