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 Aug 25, 2021
1 parent 32c576b commit 154b525
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions cmd/devp2p/internal/ethtest/chain.go
Original file line number Diff line number Diff line change
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 154b525

Please sign in to comment.