From 9445cf5d95a3d92a8ab2b60d54ceef68a5f126ce Mon Sep 17 00:00:00 2001 From: cargoedit Date: Thu, 25 Sep 2025 17:36:05 +0800 Subject: [PATCH] chore: remove unused min/max func Signed-off-by: cargoedit --- p2p/subproto/block.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/p2p/subproto/block.go b/p2p/subproto/block.go index dbcb7e588..b9eae278f 100644 --- a/p2p/subproto/block.go +++ b/p2p/subproto/block.go @@ -172,19 +172,6 @@ func (bh *newBlockNoticeHandler) Handle(msg p2pcommon.Message, msgBody p2pcommon } } -func max(a, b uint32) uint32 { - if a > b { - return a - } - return b -} -func min(a, b uint32) uint32 { - if a < b { - return a - } - return b -} - // newGetAncestorReqHandler creates handler for GetAncestorRequest func NewGetAncestorReqHandler(pm p2pcommon.PeerManager, peer p2pcommon.RemotePeer, logger *log.Logger, actor p2pcommon.ActorService) *getAncestorRequestHandler { bh := &getAncestorRequestHandler{BaseMsgHandler{protocol: p2pcommon.GetAncestorRequest, pm: pm, peer: peer, actor: actor, logger: logger}, newAsyncHelper()}