You've already forked linux-packaging-mono
Imported Upstream version 4.2.0.207
Former-commit-id: f90f74cb984aa12eac8e2a357db43169ae7378e5
This commit is contained in:
committed by
Jo Shields
parent
6992685b86
commit
afe402035c
@ -120,11 +120,6 @@ namespace System.Diagnostics {
|
||||
}
|
||||
|
||||
public StackTrace (Exception e, int skipFrames, bool fNeedFileInfo)
|
||||
: this (e, skipFrames, fNeedFileInfo, false)
|
||||
{
|
||||
}
|
||||
|
||||
internal StackTrace (Exception e, int skipFrames, bool fNeedFileInfo, bool returnNativeFrames)
|
||||
{
|
||||
if (e == null)
|
||||
throw new ArgumentNullException ("e");
|
||||
@ -133,23 +128,6 @@ namespace System.Diagnostics {
|
||||
|
||||
frames = get_trace (e, skipFrames, fNeedFileInfo);
|
||||
|
||||
if (!returnNativeFrames) {
|
||||
bool resize = false;
|
||||
for (int i = 0; i < frames.Length; ++i)
|
||||
if (frames [i].GetMethod () == null)
|
||||
resize = true;
|
||||
|
||||
if (resize) {
|
||||
var l = new List<StackFrame> ();
|
||||
|
||||
for (int i = 0; i < frames.Length; ++i)
|
||||
if (frames [i].GetMethod () != null)
|
||||
l.Add (frames [i]);
|
||||
|
||||
frames = l.ToArray ();
|
||||
}
|
||||
}
|
||||
|
||||
captured_traces = e.captured_traces;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user