diff --git a/core/stateless/encoding.go b/core/stateless/encoding.go index 8aa98a0682..750b78798a 100644 --- a/core/stateless/encoding.go +++ b/core/stateless/encoding.go @@ -17,12 +17,10 @@ package stateless import ( - "io" "slices" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/rlp" ) // ToExtWitness converts our internal witness representation to the consensus one. @@ -34,16 +32,6 @@ func (w *Witness) ToExtWitness() *ExtWitness { } } -// EncodeRLP serializes a witness as RLP. -func (w *Witness) EncodeRLP(wr io.Writer) error { - return rlp.Encode(wr, w) -} - -// DecodeRLP decodes a witness from RLP. -func (w *Witness) DecodeRLP(s *rlp.Stream) error { - return s.Decode(&w) -} - // ExtWitness is a witness RLP encoding for transferring across clients. type ExtWitness struct { Headers []*types.Header `json:"headers"`