diff --git a/de4dot.blocks/StackTracePatcher.cs b/de4dot.blocks/StackTracePatcher.cs index a5acce88..1d4334f7 100644 --- a/de4dot.blocks/StackTracePatcher.cs +++ b/de4dot.blocks/StackTracePatcher.cs @@ -79,7 +79,6 @@ namespace de4dot.blocks { } public static StackTrace WriteStackFrame(StackTrace stackTrace, int frameNo, MethodBase newMethod) { - var framesField = GetStackTraceStackFramesField(); var frames = (StackFrame[])framesField.GetValue(stackTrace); int numFramesToSkip = (int)methodsToSkipField.GetValue(stackTrace); WriteMethodBase(frames[numFramesToSkip + frameNo], newMethod);