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.
This commit is contained in:
baptiste-b-pegasys 2021-08-25 19:06:42 +02:00 committed by GitHub
parent 32c576bd3c
commit 154b525ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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