drop unused diskStorageIterator fields

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

View file

@ -327,8 +327,6 @@ func (it *diffStorageIterator) Release() {}
// diskStorageIterator is a storage iterator that steps over the live storage
// contained within a disk layer.
type diskStorageIterator struct {
layer *diskLayer
account common.Hash
it ethdb.Iterator
}
@ -339,8 +337,6 @@ type diskStorageIterator struct {
func (dl *diskLayer) StorageIterator(account common.Hash, seek common.Hash) StorageIterator {
pos := common.TrimRightZeroes(seek[:])
return &diskStorageIterator{
layer: dl,
account: account,
it: dl.diskdb.NewIterator(append(rawdb.SnapshotStoragePrefix, account.Bytes()...), pos),
}
}