Skip to content

Commit

Permalink
cmd/devp2p/internal/ethtest: remove WriteTo method (ethereum#23379)
Browse files Browse the repository at this point in the history
WriteTo is unused, and go vet warns about it because it
doesn't match the usual signature of the io.WriterTo method.
  • Loading branch information
baptiste-b-pegasys authored and Martin committed Aug 28, 2021
1 parent e917ceb commit acf053a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions cmd/devp2p/internal/ethtest/chain.go
Expand Up @@ -39,16 +39,6 @@ type Chain struct {
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.
func (c *Chain) Len() int {
return len(c.blocks)
Expand Down

0 comments on commit acf053a

Please sign in to comment.