Browse Source

ILSpy.AddIn: Remove unused code.

pull/2077/head
Siegfried Pammer 5 years ago
parent
commit
3108f7eba6
  1. 9
      ILSpy.AddIn/Commands/OpenCodeItemCommand.cs

9
ILSpy.AddIn/Commands/OpenCodeItemCommand.cs

@ -51,7 +51,6 @@ namespace ICSharpCode.ILSpy.AddIn.Commands @@ -51,7 +51,6 @@ namespace ICSharpCode.ILSpy.AddIn.Commands
ThreadHelper.ThrowIfNotOnUIThread();
var document = owner.DTE.ActiveDocument;
var selection = (EnvDTE.TextPoint)((EnvDTE.TextSelection)document.Selection).ActivePoint;
var id = owner.Workspace.CurrentSolution.GetDocumentIdsWithFilePath(document.FullName).FirstOrDefault();
if (id == null)
return null;
@ -59,14 +58,6 @@ namespace ICSharpCode.ILSpy.AddIn.Commands @@ -59,14 +58,6 @@ namespace ICSharpCode.ILSpy.AddIn.Commands
return owner.Workspace.CurrentSolution.GetDocument(id);
}
EnvDTE.TextPoint GetEditorSelection()
{
ThreadHelper.ThrowIfNotOnUIThread();
var document = owner.DTE.ActiveDocument;
return ((EnvDTE.TextSelection)document.Selection).ActivePoint;
}
protected override async void OnExecute(object sender, EventArgs e)
{
await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();

Loading…
Cancel
Save