mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 20:56:02 +00:00
Remove unnecessary usings part 5 (#14050)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0005
This commit is contained in:
1 parent
70dea4188e
commit
8148968546
8 files changed
+8
-28
No files matched your search
@@ -2,7 +2,6 @@
|
||||
// Licensed under the MIT License.
|
||||
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
|
||||
@@ -23,16 +23,14 @@ using System.Runtime;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using Microsoft.PowerShell.Telemetry;
|
||||
using Microsoft.PowerShell.Commands;
|
||||
|
||||
using ConsoleHandle = Microsoft.Win32.SafeHandles.SafeFileHandle;
|
||||
using Dbg = System.Management.Automation.Diagnostics;
|
||||
using Debugger = System.Management.Automation.Debugger;
|
||||
|
||||
using Microsoft.PowerShell.Telemetry;
|
||||
#if LEGACYTELEMETRY
|
||||
using Microsoft.PowerShell.Telemetry.Internal;
|
||||
#endif
|
||||
using ConsoleHandle = Microsoft.Win32.SafeHandles.SafeFileHandle;
|
||||
using Dbg = System.Management.Automation.Diagnostics;
|
||||
using Debugger = System.Management.Automation.Debugger;
|
||||
|
||||
namespace Microsoft.PowerShell
|
||||
{
|
||||
|
||||
@@ -4,18 +4,17 @@
|
||||
#if !UNIX
|
||||
|
||||
using System;
|
||||
using System.Management.Automation;
|
||||
using System.Management.Automation.Internal;
|
||||
using System.Management.Automation.Host;
|
||||
using System.ComponentModel;
|
||||
using System.Globalization;
|
||||
using System.Management.Automation;
|
||||
using System.Management.Automation.Host;
|
||||
using System.Management.Automation.Internal;
|
||||
using System.Security.Principal;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading.Tasks;
|
||||
using Dbg = System.Management.Automation.Diagnostics;
|
||||
using ConsoleHandle = Microsoft.Win32.SafeHandles.SafeFileHandle;
|
||||
using Dbg = System.Management.Automation.Diagnostics;
|
||||
using WORD = System.UInt16;
|
||||
using DWORD = System.UInt32;
|
||||
|
||||
namespace Microsoft.PowerShell
|
||||
{
|
||||
|
||||
@@ -6,8 +6,6 @@ using System.IO;
|
||||
using System.Management.Automation.Host;
|
||||
using System.Management.Automation.Internal;
|
||||
|
||||
using Dbg = System.Management.Automation.Diagnostics;
|
||||
|
||||
namespace Microsoft.PowerShell
|
||||
{
|
||||
internal sealed partial class ConsoleHost : PSHost, IDisposable
|
||||
|
||||
-3
@@ -9,10 +9,7 @@ using System.Management.Automation;
|
||||
using System.Management.Automation.Host;
|
||||
using System.Management.Automation.Internal;
|
||||
using System.Text;
|
||||
|
||||
using Dbg = System.Management.Automation.Diagnostics;
|
||||
using ConsoleHandle = Microsoft.Win32.SafeHandles.SafeFileHandle;
|
||||
using NakedWin32Handle = System.IntPtr;
|
||||
|
||||
namespace Microsoft.PowerShell
|
||||
{
|
||||
|
||||
@@ -1,14 +1,10 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.Management.Automation;
|
||||
using System.Management.Automation.Internal;
|
||||
using System.Security;
|
||||
|
||||
using Microsoft.Win32;
|
||||
|
||||
namespace Microsoft.PowerShell
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -4,12 +4,7 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
|
||||
using ConsoleHandle = Microsoft.Win32.SafeHandles.SafeFileHandle;
|
||||
using Dbg = System.Management.Automation.Diagnostics;
|
||||
using DWORD = System.UInt32;
|
||||
using HRESULT = System.UInt32;
|
||||
using NakedWin32Handle = System.IntPtr;
|
||||
|
||||
namespace Microsoft.PowerShell
|
||||
{
|
||||
|
||||
@@ -2,12 +2,10 @@
|
||||
// Licensed under the MIT License.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using System.Management.Automation;
|
||||
using System.Management.Automation.Language;
|
||||
using System.Management.Automation.Runspaces;
|
||||
|
||||
using Dbg = System.Management.Automation.Diagnostics;
|
||||
|
||||
Reference in new issue
Block a user