Browse Source

remove commented code

pull/191/merge
Eusebiu Marcu 15 years ago
parent
commit
e612dffeb9
  1. 6
      Debugger/ILSpy.Debugger/Services/Debugger/WindowsDebugger.cs
  2. 4
      ILSpy/TextView/DecompilerTextView.cs

6
Debugger/ILSpy.Debugger/Services/Debugger/WindowsDebugger.cs

@ -297,12 +297,6 @@ namespace ILSpy.Debugger.Services @@ -297,12 +297,6 @@ namespace ILSpy.Debugger.Services
return CodeMappingsStorage.GetInstructionByTypeAndLine(
CurrentLineBookmark.Instance.Type.FullName,
CurrentLineBookmark.Instance.LineNumber, out token);
// var val = CodeMappingsStorage[CurrentLineBookmark.Instance.Type.FullName];
//
// var mapping = val.Find(m => m.MetadataToken == token);
//
// return mapping.MemberCodeMappings.FirstOrDefault(s => s.ILInstructionOffset.From == instruction.ILInstructionOffset.From);
}
StackFrame GetStackFrame()

4
ILSpy/TextView/DecompilerTextView.cs

@ -413,11 +413,11 @@ namespace ICSharpCode.ILSpy.TextView @@ -413,11 +413,11 @@ namespace ICSharpCode.ILSpy.TextView
// show the currentline marker
var bm = CurrentLineBookmark.Instance;
if (bm != null && DebugData.CurrentType != null) {
if (DebugData.CurrentType.FullName.Equals(bm.Type.FullName, StringComparison.OrdinalIgnoreCase)) {
if (DebugData.CurrentType == bm.Type) {
DocumentLine line = textEditor.Document.GetLineByNumber(bm.LineNumber);
bm.Marker = bm.CreateMarker(textMarkerService, line.Offset, line.Length);
UnfoldAndScroll(bm.LineNumber);
}
UnfoldAndScroll(bm.LineNumber);
}
} else {
// hide the margin

Loading…
Cancel
Save