mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Remove unnecessary usings part 1 (#14014)
* Fix IDE0005: Remove unnecessary import https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0005 * Sort usings
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Management.Automation;
|
||||
using System.Threading;
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
|
||||
#region Using directives
|
||||
|
||||
using System;
|
||||
using System.Threading;
|
||||
using Microsoft.Management.Infrastructure.Options;
|
||||
using System;
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
|
||||
#region Using directives
|
||||
|
||||
using System.Collections;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -3,11 +3,8 @@
|
||||
|
||||
#region Using directives
|
||||
|
||||
using System.Collections;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Management.Automation;
|
||||
using System.Globalization;
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
|
||||
#region Using directives
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Management.Automation;
|
||||
|
||||
@@ -8,7 +8,6 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.Management.Automation;
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
|
||||
#region Using directives
|
||||
|
||||
using System.Collections;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
#region Using directives
|
||||
|
||||
using System;
|
||||
using System.Management.Automation;
|
||||
using System.Globalization;
|
||||
using System.Management.Automation;
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Management.Automation;
|
||||
using System.Management.Automation.Runspaces;
|
||||
using System.Globalization;
|
||||
using Microsoft.Management.Infrastructure.Options;
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -3,11 +3,10 @@
|
||||
|
||||
#region Using directives
|
||||
|
||||
using System.Collections;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Management.Automation;
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -2,9 +2,8 @@
|
||||
// Licensed under the MIT License.
|
||||
|
||||
#region Using directives
|
||||
using System.Management.Automation;
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.Management.Automation;
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
+1
-1
@@ -4,9 +4,9 @@
|
||||
#region Using directives
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Management.Automation;
|
||||
using System.Collections.Generic;
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -5,9 +5,8 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Management.Automation;
|
||||
using System.Collections;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Management.Automation;
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
#region Using directives
|
||||
using System;
|
||||
using System.Management.Automation;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Management.Automation;
|
||||
using Microsoft.Management.Infrastructure.Options;
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -9,9 +9,7 @@ using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Management.Automation;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading;
|
||||
|
||||
namespace Microsoft.Management.Infrastructure.CimCmdlets
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user