From b31cbfed402b5d3a1670339c48fd5b5e7c31ccba Mon Sep 17 00:00:00 2001 From: wit liu <765765346@qq.com> Date: Fri, 14 Nov 2025 22:28:23 +0800 Subject: [PATCH] miner: remove unused `abs` function (#1734) --- miner/worker.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/miner/worker.go b/miner/worker.go index d0b1e71fb4..137babf1e8 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -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()