mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
miner: remove unused abs function (#1734)
This commit is contained in:
parent
bd3d30919d
commit
b31cbfed40
1 changed files with 0 additions and 7 deletions
|
|
@ -622,13 +622,6 @@ func (w *worker) makeCurrent(parent *types.Block, header *types.Header) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func abs(x int64) int64 {
|
||||
if x < 0 {
|
||||
return -x
|
||||
}
|
||||
return x
|
||||
}
|
||||
|
||||
func (w *worker) checkPreCommitWithLock() (*types.Block, bool) {
|
||||
w.mu.Lock()
|
||||
defer w.mu.Unlock()
|
||||
|
|
|
|||
Loading…
Reference in a new issue