From 5f6ca0b8b38022834e9f7ae5eca0abd5b67e0d15 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Tue, 20 Aug 2013 19:10:53 +0200 Subject: [PATCH] clean up code --- src/AddIns/DisplayBindings/ILSpyAddIn/DebuggerTextOutput.cs | 1 - .../DisplayBindings/ILSpyAddIn/ILSpyDecompilerService.cs | 4 ---- src/AddIns/DisplayBindings/ILSpyAddIn/ILSpySymbolSource.cs | 1 - .../ILSpyAddIn/LaunchILSpy/ILSpyController.cs | 4 ---- .../ILSpyAddIn/LaunchILSpy/OpenInILSpyCommand.cs | 2 -- .../ILSpyAddIn/ViewContent/DecompiledViewContent.cs | 6 ------ src/Main/SharpDevelop/Parser/AssemblyParserService.cs | 5 ++--- 7 files changed, 2 insertions(+), 21 deletions(-) diff --git a/src/AddIns/DisplayBindings/ILSpyAddIn/DebuggerTextOutput.cs b/src/AddIns/DisplayBindings/ILSpyAddIn/DebuggerTextOutput.cs index e0cd4c38b3..a0d60a3d9b 100644 --- a/src/AddIns/DisplayBindings/ILSpyAddIn/DebuggerTextOutput.cs +++ b/src/AddIns/DisplayBindings/ILSpyAddIn/DebuggerTextOutput.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Linq; -using ICSharpCode.Core; using ICSharpCode.Decompiler; using ICSharpCode.Decompiler.ILAst; using ICSharpCode.NRefactory.CSharp; diff --git a/src/AddIns/DisplayBindings/ILSpyAddIn/ILSpyDecompilerService.cs b/src/AddIns/DisplayBindings/ILSpyAddIn/ILSpyDecompilerService.cs index c5852bece5..a7a7d7dae9 100644 --- a/src/AddIns/DisplayBindings/ILSpyAddIn/ILSpyDecompilerService.cs +++ b/src/AddIns/DisplayBindings/ILSpyAddIn/ILSpyDecompilerService.cs @@ -2,8 +2,6 @@ // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; -using System.IO; -using System.Text; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; @@ -12,8 +10,6 @@ using ICSharpCode.Core; using ICSharpCode.Decompiler; using ICSharpCode.Decompiler.Ast; using ICSharpCode.NRefactory.TypeSystem; -using ICSharpCode.SharpDevelop; -using ICSharpCode.SharpDevelop.Dom.ClassBrowser; using ICSharpCode.SharpDevelop.Parser; using Mono.Cecil; diff --git a/src/AddIns/DisplayBindings/ILSpyAddIn/ILSpySymbolSource.cs b/src/AddIns/DisplayBindings/ILSpyAddIn/ILSpySymbolSource.cs index 5dbca51b1b..8afb8fcae1 100644 --- a/src/AddIns/DisplayBindings/ILSpyAddIn/ILSpySymbolSource.cs +++ b/src/AddIns/DisplayBindings/ILSpyAddIn/ILSpySymbolSource.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.Linq; using Debugger; using ICSharpCode.Core; diff --git a/src/AddIns/DisplayBindings/ILSpyAddIn/LaunchILSpy/ILSpyController.cs b/src/AddIns/DisplayBindings/ILSpyAddIn/LaunchILSpy/ILSpyController.cs index 7636a95d51..ef4b5e3488 100644 --- a/src/AddIns/DisplayBindings/ILSpyAddIn/LaunchILSpy/ILSpyController.cs +++ b/src/AddIns/DisplayBindings/ILSpyAddIn/LaunchILSpy/ILSpyController.cs @@ -2,17 +2,13 @@ // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; -using System.Collections.Generic; using System.Diagnostics; using System.IO; -using System.Text; using System.Windows.Forms; using ICSharpCode.Core; using ICSharpCode.NRefactory.Documentation; using ICSharpCode.NRefactory.TypeSystem; using ICSharpCode.SharpDevelop; -using ICSharpCode.SharpDevelop.Gui; -using ICSharpCode.SharpDevelop.Project; namespace ICSharpCode.ILSpyAddIn { diff --git a/src/AddIns/DisplayBindings/ILSpyAddIn/LaunchILSpy/OpenInILSpyCommand.cs b/src/AddIns/DisplayBindings/ILSpyAddIn/LaunchILSpy/OpenInILSpyCommand.cs index b0c860f929..b6d0b7f54b 100644 --- a/src/AddIns/DisplayBindings/ILSpyAddIn/LaunchILSpy/OpenInILSpyCommand.cs +++ b/src/AddIns/DisplayBindings/ILSpyAddIn/LaunchILSpy/OpenInILSpyCommand.cs @@ -2,9 +2,7 @@ // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; -using ICSharpCode.Core; using ICSharpCode.NRefactory.Semantics; -using ICSharpCode.SharpDevelop.Editor.Bookmarks; using ICSharpCode.SharpDevelop.Editor.Commands; namespace ICSharpCode.ILSpyAddIn diff --git a/src/AddIns/DisplayBindings/ILSpyAddIn/ViewContent/DecompiledViewContent.cs b/src/AddIns/DisplayBindings/ILSpyAddIn/ViewContent/DecompiledViewContent.cs index af769d8bd4..f968ea5444 100644 --- a/src/AddIns/DisplayBindings/ILSpyAddIn/ViewContent/DecompiledViewContent.cs +++ b/src/AddIns/DisplayBindings/ILSpyAddIn/ViewContent/DecompiledViewContent.cs @@ -12,18 +12,12 @@ using ICSharpCode.AvalonEdit.AddIn; using ICSharpCode.AvalonEdit.Highlighting; using ICSharpCode.Core; using ICSharpCode.Decompiler; -using ICSharpCode.Decompiler.Ast; -using ICSharpCode.Decompiler.Disassembler; -using ICSharpCode.NRefactory.Documentation; -using ICSharpCode.SharpDevelop.Gui; using ICSharpCode.ILSpyAddIn; using ICSharpCode.NRefactory; using ICSharpCode.NRefactory.TypeSystem; using ICSharpCode.SharpDevelop; -using ICSharpCode.SharpDevelop.Debugging; using ICSharpCode.SharpDevelop.Editor.Bookmarks; using ICSharpCode.SharpDevelop.Workbench; -using Mono.Cecil; namespace ICSharpCode.ILSpyAddIn { diff --git a/src/Main/SharpDevelop/Parser/AssemblyParserService.cs b/src/Main/SharpDevelop/Parser/AssemblyParserService.cs index d976b97e0c..b5b5a24dde 100644 --- a/src/Main/SharpDevelop/Parser/AssemblyParserService.cs +++ b/src/Main/SharpDevelop/Parser/AssemblyParserService.cs @@ -304,9 +304,8 @@ namespace ICSharpCode.SharpDevelop.Parser public ICompilation CreateCompilationForAssembly(IAssemblyModel assembly, bool includeInternalMembers = false) { - var fileName = new FileName(assembly.Location); - var mainAssembly = GetAssembly(fileName, includeInternalMembers); - var searcher = new DefaultAssemblySearcher(fileName); + var mainAssembly = GetAssembly(assembly.Location, includeInternalMembers); + var searcher = new DefaultAssemblySearcher(assembly.Location); var references = assembly.References .Select(searcher.FindAssembly) .Where(f => f != null);