lncli: remove dead code
Variable chanPoints was accumulated but never used. Found with staticcheck tool.
The code is dead since 8f5d78c875
This commit is contained in:
1 file changed
-13
@@ -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
|
||||
|
||||
Reference in new issue
Block a user