mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 02:10:46 +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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func abs(x int64) int64 {
|
|
||||||
if x < 0 {
|
|
||||||
return -x
|
|
||||||
}
|
|
||||||
return x
|
|
||||||
}
|
|
||||||
|
|
||||||
func (w *worker) checkPreCommitWithLock() (*types.Block, bool) {
|
func (w *worker) checkPreCommitWithLock() (*types.Block, bool) {
|
||||||
w.mu.Lock()
|
w.mu.Lock()
|
||||||
defer w.mu.Unlock()
|
defer w.mu.Unlock()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue