diff --git a/core/vm/evm.go b/core/vm/evm.go index 9960850c4bba..c150ec8734f6 100644 --- a/core/vm/evm.go +++ b/core/vm/evm.go @@ -199,11 +199,6 @@ func NewEVM(blockCtx BlockContext, statedb StateDB, tradingStateDB *tradingstate return evm } -// SetTracer sets the tracer for following state transition. -func (evm *EVM) SetTracer(tracer *tracing.Hooks) { - evm.Config.Tracer = tracer -} - // SetPrecompiles sets the precompiled contracts for the EVM. // This method is only used through RPC calls. // It is not thread-safe.