Browse Source

Code Tidy : Remove redundant using statements

pull/310/head
Ed Harvey 14 years ago
parent
commit
729cc9da0c
  1. 2
      ILSpy/AboutPage.cs
  2. 3
      ILSpy/AssemblyList.cs
  3. 2
      ILSpy/AvalonEdit/IconMarginActionsProvider.cs
  4. 5
      ILSpy/Bookmarks/MemberBookmark.cs
  5. 2
      ILSpy/Controls/ExtensionMethods.cs
  6. 29
      ILSpy/Controls/ResourceStringTable.xaml.cs
  7. 10
      ILSpy/CreateListDialog.xaml.cs
  8. 3
      ILSpy/ExtensionMethods.cs
  9. 1
      ILSpy/FilterSettings.cs
  10. 1
      ILSpy/GuessFileType.cs
  11. 3
      ILSpy/ILSpySettings.cs
  12. 2
      ILSpy/NavigationHistory.cs
  13. 7
      ILSpy/Options/DecompilerSettingsPanel.xaml.cs
  14. 5
      ILSpy/Options/DisplaySettingsPanel.xaml.cs
  15. 6
      ILSpy/Options/OptionsDialog.xaml.cs
  16. 8
      ILSpy/SearchPane.cs
  17. 2
      ILSpy/TextView/AvalonEditTextOutput.cs
  18. 1
      ILSpy/TreeNodes/Analyzer/AnalyzedEventFiredByTreeNode.cs
  19. 1
      ILSpy/TreeNodes/Analyzer/AnalyzedInterfaceEventImplementedByTreeNode.cs
  20. 1
      ILSpy/TreeNodes/Analyzer/AnalyzedMethodUsedByTreeNode.cs
  21. 2
      ILSpy/TreeNodes/AssemblyReferenceTreeNode.cs
  22. 1
      ILSpy/TreeNodes/ReferenceFolderTreeNode.cs
  23. 10
      ILSpy/TreeNodes/ResourceListTreeNode.cs
  24. 1
      ILSpy/TreeNodes/ResourceNodes/IResourceNodeFactory.cs
  25. 2
      ILSpy/VB/VBTextOutputFormatter.cs

2
ILSpy/AboutPage.cs

@ -29,12 +29,10 @@ using System.Windows; @@ -29,12 +29,10 @@ using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Input;
using System.Xml;
using System.Xml.Linq;
using ICSharpCode.AvalonEdit.Rendering;
using ICSharpCode.Decompiler;
using ICSharpCode.ILSpy.Bookmarks;
using ICSharpCode.ILSpy.TextView;
namespace ICSharpCode.ILSpy

3
ILSpy/AssemblyList.cs

@ -17,7 +17,6 @@ @@ -17,7 +17,6 @@
// DEALINGS IN THE SOFTWARE.
using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.ObjectModel;
@ -26,8 +25,6 @@ using System.IO; @@ -26,8 +25,6 @@ using System.IO;
using System.Linq;
using System.Windows.Threading;
using System.Xml.Linq;
using ICSharpCode.ILSpy.TreeNodes;
using Mono.Cecil;
namespace ICSharpCode.ILSpy
{

2
ILSpy/AvalonEdit/IconMarginActionsProvider.cs

@ -21,8 +21,6 @@ using System.ComponentModel.Composition; @@ -21,8 +21,6 @@ using System.ComponentModel.Composition;
using System.Linq;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
using ICSharpCode.ILSpy.Bookmarks;
namespace ICSharpCode.ILSpy.AvalonEdit

5
ILSpy/Bookmarks/MemberBookmark.cs

@ -17,13 +17,8 @@ @@ -17,13 +17,8 @@
// DEALINGS IN THE SOFTWARE.
using System;
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;
using ICSharpCode.Decompiler;
using ICSharpCode.NRefactory.CSharp;
using ICSharpCode.NRefactory.TypeSystem;
using Mono.Cecil;
namespace ICSharpCode.ILSpy.Bookmarks

2
ILSpy/Controls/ExtensionMethods.cs

@ -17,10 +17,8 @@ @@ -17,10 +17,8 @@
// DEALINGS IN THE SOFTWARE.
using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Markup;
using Mono.Cecil;
namespace ICSharpCode.ILSpy.Controls
{

29
ILSpy/Controls/ResourceStringTable.xaml.cs

@ -1,20 +1,27 @@ @@ -1,20 +1,27 @@
/*
* Created by SharpDevelop.
* User: Ronny Klier
* Date: 31.05.2011
* Time: 00:13
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
// Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.Collections;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
namespace ICSharpCode.ILSpy.Controls
{

10
ILSpy/CreateListDialog.xaml.cs

@ -1,16 +1,6 @@ @@ -1,16 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace ICSharpCode.ILSpy
{

3
ILSpy/ExtensionMethods.cs

@ -18,9 +18,6 @@ @@ -18,9 +18,6 @@
using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Markup;
using Mono.Cecil;
namespace ICSharpCode.ILSpy
{

1
ILSpy/FilterSettings.cs

@ -18,7 +18,6 @@ @@ -18,7 +18,6 @@
using System;
using System.ComponentModel;
using System.Linq;
using System.Xml.Linq;
namespace ICSharpCode.ILSpy

1
ILSpy/GuessFileType.cs

@ -20,7 +20,6 @@ using System; @@ -20,7 +20,6 @@ using System;
using System.IO;
using System.Text;
using System.Xml;
using ICSharpCode.AvalonEdit.Utils;
namespace ICSharpCode.ILSpy
{

3
ILSpy/ILSpySettings.cs

@ -18,7 +18,6 @@ @@ -18,7 +18,6 @@
using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Xml;
@ -135,7 +134,7 @@ namespace ICSharpCode.ILSpy @@ -135,7 +134,7 @@ namespace ICSharpCode.ILSpy
/// </summary>
sealed class MutexProtector : IDisposable
{
Mutex mutex;
readonly Mutex mutex;
public MutexProtector(string name)
{

2
ILSpy/NavigationHistory.cs

@ -18,8 +18,6 @@ @@ -18,8 +18,6 @@
using System;
using System.Collections.Generic;
using ICSharpCode.TreeView;
using System.Diagnostics;
namespace ICSharpCode.ILSpy
{

7
ILSpy/Options/DecompilerSettingsPanel.xaml.cs

@ -17,14 +17,7 @@ @@ -17,14 +17,7 @@
// DEALINGS IN THE SOFTWARE.
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Xml.Linq;
using ICSharpCode.Decompiler;

5
ILSpy/Options/DisplaySettingsPanel.xaml.cs

@ -17,19 +17,14 @@ @@ -17,19 +17,14 @@
// DEALINGS IN THE SOFTWARE.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Threading;
using System.Xml.Linq;
using ICSharpCode.Decompiler;
namespace ICSharpCode.ILSpy.Options
{

6
ILSpy/Options/OptionsDialog.xaml.cs

@ -17,16 +17,10 @@ @@ -17,16 +17,10 @@
// DEALINGS IN THE SOFTWARE.
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Xml.Linq;
namespace ICSharpCode.ILSpy.Options

8
ILSpy/SearchPane.cs

@ -17,22 +17,16 @@ @@ -17,22 +17,16 @@
// DEALINGS IN THE SOFTWARE.
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Threading;
using ICSharpCode.Decompiler.ILAst;
using ICSharpCode.ILSpy.TreeNodes;
using ICSharpCode.NRefactory.CSharp;
using ICSharpCode.NRefactory.Utils;
@ -192,7 +186,7 @@ namespace ICSharpCode.ILSpy @@ -192,7 +186,7 @@ namespace ICSharpCode.ILSpy
readonly CancellationTokenSource cts = new CancellationTokenSource();
readonly LoadedAssembly[] assemblies;
readonly string searchTerm;
int searchMode;
readonly int searchMode;
readonly Language language;
public readonly ObservableCollection<SearchResult> Results = new ObservableCollection<SearchResult>();
int resultCount;

2
ILSpy/TextView/AvalonEditTextOutput.cs

@ -26,9 +26,7 @@ using System.Windows; @@ -26,9 +26,7 @@ using System.Windows;
using ICSharpCode.AvalonEdit.Document;
using ICSharpCode.AvalonEdit.Folding;
using ICSharpCode.AvalonEdit.Rendering;
using ICSharpCode.AvalonEdit.Utils;
using ICSharpCode.Decompiler;
using Mono.Cecil;
namespace ICSharpCode.ILSpy.TextView
{

1
ILSpy/TreeNodes/Analyzer/AnalyzedEventFiredByTreeNode.cs

@ -21,7 +21,6 @@ using System.Collections.Concurrent; @@ -21,7 +21,6 @@ using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using ICSharpCode.TreeView;
using Mono.Cecil;
using Mono.Cecil.Cil;

1
ILSpy/TreeNodes/Analyzer/AnalyzedInterfaceEventImplementedByTreeNode.cs

@ -21,7 +21,6 @@ using System.Collections.Generic; @@ -21,7 +21,6 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading;
using ICSharpCode.Decompiler.Ast;
using ICSharpCode.TreeView;
using Mono.Cecil;
namespace ICSharpCode.ILSpy.TreeNodes.Analyzer

1
ILSpy/TreeNodes/Analyzer/AnalyzedMethodUsedByTreeNode.cs

@ -21,7 +21,6 @@ using System.Collections.Concurrent; @@ -21,7 +21,6 @@ using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using ICSharpCode.TreeView;
using Mono.Cecil;
using Mono.Cecil.Cil;

2
ILSpy/TreeNodes/AssemblyReferenceTreeNode.cs

@ -17,9 +17,7 @@ @@ -17,9 +17,7 @@
// DEALINGS IN THE SOFTWARE.
using System;
using System.Linq;
using ICSharpCode.Decompiler;
using ICSharpCode.TreeView;
using Mono.Cecil;
namespace ICSharpCode.ILSpy.TreeNodes

1
ILSpy/TreeNodes/ReferenceFolderTreeNode.cs

@ -19,7 +19,6 @@ @@ -19,7 +19,6 @@
using System;
using System.Windows.Threading;
using ICSharpCode.Decompiler;
using ICSharpCode.TreeView;
using Mono.Cecil;
namespace ICSharpCode.ILSpy.TreeNodes

10
ILSpy/TreeNodes/ResourceListTreeNode.cs

@ -17,19 +17,9 @@ @@ -17,19 +17,9 @@
// DEALINGS IN THE SOFTWARE.
using System;
using System.Collections;
using System.IO;
using System.Linq;
using System.Resources;
using System.Text;
using System.Windows;
using System.Windows.Threading;
using ICSharpCode.AvalonEdit.Highlighting;
using ICSharpCode.AvalonEdit.Utils;
using ICSharpCode.Decompiler;
using ICSharpCode.ILSpy.TextView;
using Microsoft.Win32;
using Mono.Cecil;
namespace ICSharpCode.ILSpy.TreeNodes

1
ILSpy/TreeNodes/ResourceNodes/IResourceNodeFactory.cs

@ -17,7 +17,6 @@ @@ -17,7 +17,6 @@
// DEALINGS IN THE SOFTWARE.
using System;
using System.IO;
using Mono.Cecil;
namespace ICSharpCode.ILSpy.TreeNodes

2
ILSpy/VB/VBTextOutputFormatter.cs

@ -18,8 +18,6 @@ @@ -18,8 +18,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using ICSharpCode.Decompiler;
using ICSharpCode.Decompiler.ILAst;
using ICSharpCode.NRefactory.VB;

Loading…
Cancel
Save