Unverified Commit 154b525c authored by baptiste-b-pegasys's avatar baptiste-b-pegasys Committed by GitHub

cmd/devp2p/internal/ethtest: remove WriteTo method (#23379)

WriteTo is unused, and go vet warns about it because it
doesn't match the usual signature of the io.WriterTo method.
parent 32c576bd
...@@ -39,16 +39,6 @@ type Chain struct { ...@@ -39,16 +39,6 @@ type Chain struct {
chainConfig *params.ChainConfig chainConfig *params.ChainConfig
} }
func (c *Chain) WriteTo(writer io.Writer) error {
for _, block := range c.blocks {
if err := rlp.Encode(writer, block); err != nil {
return err
}
}
return nil
}
// Len returns the length of the chain. // Len returns the length of the chain.
func (c *Chain) Len() int { func (c *Chain) Len() int {
return len(c.blocks) return len(c.blocks)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment