core/tracing: remove Hooks.copy

This commit is contained in:
Felix Lange 2025-02-05 00:31:05 +01:00
parent 51720dcad1
commit 4787f31828

View file

@ -209,14 +209,6 @@ type Hooks struct {
OnBlockHashRead BlockHashReadHook 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 // BalanceChangeReason is used to indicate the reason for a balance change, useful
// for tracing and reporting. // for tracing and reporting.
type BalanceChangeReason byte type BalanceChangeReason byte