Remove unnecessary usings part 2 (#14017)

https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0005
This commit is contained in:
xtqqczze
2020-11-10 08:15:04 +05:00
committed by GitHub
parent 8f0c63156e
commit 6b009c11e3
9 changed files with 1 additions and 30 deletions
@@ -2,9 +2,7 @@
// Licensed under the MIT License.
using System;
using System.Collections;
using System.Diagnostics;
using System.Globalization;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
@@ -2,7 +2,6 @@
// Licensed under the MIT License.
#if CORECLR
using System.ComponentModel;
namespace System.Diagnostics
{
@@ -2,16 +2,10 @@
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Reflection;
using System.Resources;
using Microsoft.Powershell.Commands.GetCounter.PdhNative;
namespace Microsoft.PowerShell.Commands.GetCounter
{
public class PerformanceCounterSample
@@ -2,10 +2,8 @@
// Licensed under the MIT License.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Diagnostics;
namespace Microsoft.PowerShell.Commands.GetCounter
@@ -2,29 +2,17 @@
// Licensed under the MIT License.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
using System.Management.Automation;
using System.Management.Automation.Runspaces;
using System.Net;
using System.Reflection;
using System.Resources;
using System.Security;
using System.Security.Principal;
using System.Text;
using System.Threading;
using System.Xml;
using Microsoft.Powershell.Commands.GetCounter.PdhNative;
using Microsoft.PowerShell.Commands.Diagnostics.Common;
using Microsoft.PowerShell.Commands.GetCounter;
using Microsoft.Powershell.Commands.GetCounter.PdhNative;
namespace Microsoft.PowerShell.Commands
{
@@ -11,7 +11,6 @@ using System.Diagnostics.Eventing.Reader;
using System.Globalization;
using System.Management.Automation;
using System.Net;
using System.Reflection;
using System.Resources;
using System.Security.Principal;
using System.Text;
@@ -9,7 +9,6 @@ using System.Diagnostics.Eventing.Reader;
using System.Globalization;
using System.IO;
using System.Management.Automation;
using System.Reflection;
using System.Resources;
using System.Xml;
@@ -2,13 +2,11 @@
// Licensed under the MIT License.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Diagnostics;
using System.Globalization;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.ComTypes;
using Microsoft.PowerShell.Commands.GetCounter;
using Microsoft.Win32;
@@ -4,8 +4,6 @@
using System;
using System.Runtime.InteropServices;
using System.Runtime.ConstrainedExecution;
namespace Microsoft.Powershell.Commands.GetCounter.PdhNative
{
internal sealed class PdhSafeDataSourceHandle : SafeHandle