mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 13:16:42 +00:00
common/prque: remove unreachable offset==blockSize branch in Push
This commit is contained in:
parent
b708feb9c3
commit
ce175c948a
1 changed files with 0 additions and 3 deletions
|
|
@ -57,9 +57,6 @@ func (s *sstack[P, V]) Push(data any) {
|
||||||
s.blocks = append(s.blocks, s.active)
|
s.blocks = append(s.blocks, s.active)
|
||||||
s.capacity += blockSize
|
s.capacity += blockSize
|
||||||
s.offset = 0
|
s.offset = 0
|
||||||
} else if s.offset == blockSize {
|
|
||||||
s.active = s.blocks[s.size/blockSize]
|
|
||||||
s.offset = 0
|
|
||||||
}
|
}
|
||||||
if s.setIndex != nil {
|
if s.setIndex != nil {
|
||||||
s.setIndex(data.(*item[P, V]).value, s.size)
|
s.setIndex(data.(*item[P, V]).value, s.size)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue