lnwire: remove obsolete String() method from new wire messages

This commit is contained in:
Olaoluwa Osuntokun committed 2017-02-21 01:43:34 -08:00
1 parent bcde70e74a
commit 4aa7de7f58
4 files changed
-53

No files matched your search

-11
View File
@@ -1,7 +1,6 @@
package lnwire
import (
"fmt"
"io"
"github.com/roasbeef/btcd/wire"
@@ -158,13 +157,3 @@ func (c *UpdateFailHTLC) Validate() error {
// We're good!
return nil
}
// String returns the string representation of the target UpdateFailHTLC. This is
// part of the lnwire.Message interface.
func (c *UpdateFailHTLC) String() string {
return fmt.Sprintf("\n--- Begin UpdateFailHTLC ---\n") +
fmt.Sprintf("ChannelPoint:\t%d\n", c.ChannelPoint) +
fmt.Sprintf("ID:\t%d\n", c.ID) +
fmt.Sprintf("Reason:\t\t%x\n", c.Reason) +
fmt.Sprintf("--- End UpdateFailHTLC ---\n")
}