mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 03:10:48 +00:00
rlp: remove RawList.Empty
This commit is contained in:
parent
3336912f3b
commit
7610cff62a
2 changed files with 0 additions and 8 deletions
|
|
@ -123,11 +123,6 @@ func (r *RawList[T]) Size() uint64 {
|
|||
return ListSize(uint64(len(r.Content())))
|
||||
}
|
||||
|
||||
// Empty returns true if the list contains no items.
|
||||
func (r *RawList[T]) Empty() bool {
|
||||
return len(r.Content()) == 0
|
||||
}
|
||||
|
||||
// ContentIterator returns an iterator over the content of the list.
|
||||
// Note the offsets returned by iterator.Offset are relative to the
|
||||
// Content bytes of the list.
|
||||
|
|
|
|||
|
|
@ -154,9 +154,6 @@ func TestRawListEmpty(t *testing.T) {
|
|||
if !bytes.Equal(b, unhex("C0")) {
|
||||
t.Fatalf("empty RawList has wrong encoding %x", b)
|
||||
}
|
||||
if !rl.Empty() {
|
||||
t.Fatal("list should be Empty")
|
||||
}
|
||||
if rl.Len() != 0 {
|
||||
t.Fatalf("empty list has Len %d", rl.Len())
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue