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 jagdeep sidhu committed Aug 25, 2021
1 parent 1d6585c commit cd92d2c
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 cd92d2c

Please sign in to comment.