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.
pull/23476/head
baptiste-b-pegasys 3 years ago committed by GitHub
parent 32c576bd3c
commit 154b525ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      cmd/devp2p/internal/ethtest/chain.go

@ -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)

Loading…
Cancel
Save