miner: remove unused abs function (#1734)

This commit is contained in:
wit liu 2025-11-14 22:28:23 +08:00 committed by GitHub
parent bd3d30919d
commit b31cbfed40
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()