From 4787f31828a46a4b4aac44ae2066b5df0b7adaaa Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 5 Feb 2025 00:31:05 +0100 Subject: [PATCH] core/tracing: remove Hooks.copy --- core/tracing/hooks.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/core/tracing/hooks.go b/core/tracing/hooks.go index 46696070a1..ac5ebf1a0d 100644 --- a/core/tracing/hooks.go +++ b/core/tracing/hooks.go @@ -209,14 +209,6 @@ type Hooks struct { OnBlockHashRead BlockHashReadHook } -// copy creates a new Hooks instance with all implemented hooks copied from the original. -// Note: it is not a deep copy. If a hook has been implemented as a closure and acts on -// a mutable state, the copied hook will still act on the same state. -func (h *Hooks) copy() *Hooks { - c := *h - return &c -} - // BalanceChangeReason is used to indicate the reason for a balance change, useful // for tracing and reporting. type BalanceChangeReason byte