mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Remove unnecessary usings part 2 (#14017)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0005
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user