drop unused diskStorageIterator fields

This commit is contained in:
phrwlk 2026-01-07 23:27:14 +02:00 committed by GitHub
parent 957a3602d9
commit 9c70bfa011
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -305,7 +305,6 @@ func (it *diffStorageIterator) Release() {}
// aggregated buffer and the persistent disk layer as the data sources. The
// staleness of the diff iterator is sufficient to invalidate the iterator pair.
type diskStorageIterator struct {
account common.Hash
it ethdb.Iterator
}
@ -313,7 +312,6 @@ type diskStorageIterator struct {
func newDiskStorageIterator(db ethdb.KeyValueStore, account common.Hash, seek common.Hash) StorageIterator {
pos := common.TrimRightZeroes(seek[:])
return &diskStorageIterator{
account: account,
it: db.NewIterator(append(rawdb.SnapshotStoragePrefix, account.Bytes()...), pos),
}
}