mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 12:16:44 +00:00
core/txpool: remove unnecessary reset
This commit is contained in:
parent
eaaa5b716d
commit
4fe8e76fca
1 changed files with 0 additions and 1 deletions
|
|
@ -47,7 +47,6 @@ func (h *nonceHeap) Pop() interface{} {
|
||||||
old := *h
|
old := *h
|
||||||
n := len(old)
|
n := len(old)
|
||||||
x := old[n-1]
|
x := old[n-1]
|
||||||
old[n-1] = 0
|
|
||||||
*h = old[0 : n-1]
|
*h = old[0 : n-1]
|
||||||
return x
|
return x
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue