diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/AddContentCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/AddContentCommand.cs index d5084f051..f0b3d1cbe 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/AddContentCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/AddContentCommand.cs @@ -4,9 +4,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Management.Automation; -using System.Management.Automation.Provider; using System.Management.Automation.Internal; using Dbg = System.Management.Automation; diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/ClearContentCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/ClearContentCommand.cs index d4bab8957..b5b05f4a9 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/ClearContentCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/ClearContentCommand.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Management.Automation; using Dbg = System.Management.Automation; diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/ClearPropertyCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/ClearPropertyCommand.cs index 96d937660..7f9237aa8 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/ClearPropertyCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/ClearPropertyCommand.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.ObjectModel; using System.Management.Automation; using Dbg = System.Management.Automation; diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/CombinePathCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/CombinePathCommand.cs index e854f0ac6..9aa673126 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/CombinePathCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/CombinePathCommand.cs @@ -3,7 +3,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Management.Automation; using Dbg = System.Management.Automation; diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/CommandsCommon.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/CommandsCommon.cs index 5f0b89c40..53998eafb 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/CommandsCommon.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/CommandsCommon.cs @@ -4,7 +4,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Management.Automation; -using System.Management.Automation.Internal; namespace Microsoft.PowerShell.Commands { diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/CommitTransactionCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/CommitTransactionCommand.cs index 72bd41af9..616d20b2b 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/CommitTransactionCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/CommitTransactionCommand.cs @@ -2,9 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Management.Automation; -using System.Management.Automation.Provider; using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/ControlPanelItemCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/ControlPanelItemCommand.cs index 89d0cce04..ac4f99f1f 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/ControlPanelItemCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/ControlPanelItemCommand.cs @@ -6,7 +6,6 @@ using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; using System.Globalization; using Microsoft.Win32; -using Shell32; using System; using System.Management.Automation; using System.Management.Automation.Internal; diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/ConvertPathCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/ConvertPathCommand.cs index 489cac851..8228aa22f 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/ConvertPathCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/ConvertPathCommand.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.ObjectModel; using System.Management.Automation; using Dbg = System.Management.Automation; diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/CopyPropertyCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/CopyPropertyCommand.cs index 9f1549286..69cbc9b8a 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/CopyPropertyCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/CopyPropertyCommand.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Management.Automation; using Dbg = System.Management.Automation; diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetChildrenCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetChildrenCommand.cs index 9f370de67..b21942873 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetChildrenCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetChildrenCommand.cs @@ -3,13 +3,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.Collections; -using System.Collections.ObjectModel; -using System.Text; using System.Management.Automation; -using System.Reflection; -using System.Resources; -using System.Threading; using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetContentCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetContentCommand.cs index 5deed95ae..7354f58d7 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetContentCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetContentCommand.cs @@ -5,7 +5,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Collections; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.IO; using System.Management.Automation; using System.Management.Automation.Internal; diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetPropertyCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetPropertyCommand.cs index 874f8de23..7ec7ca11d 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetPropertyCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetPropertyCommand.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; using System.Management.Automation; diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetTransactionCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetTransactionCommand.cs index 084e78dde..ff47b4777 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetTransactionCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetTransactionCommand.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Management.Automation; using Dbg = System.Management.Automation; diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/Navigation.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/Navigation.cs index c0663908f..23631e429 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/Navigation.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/Navigation.cs @@ -8,7 +8,6 @@ using System.Collections.ObjectModel; using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Provider; -using System.Threading; using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/NewPropertyCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/NewPropertyCommand.cs index 0d5cc8b5d..327e9b5c7 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/NewPropertyCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/NewPropertyCommand.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Management.Automation; using Dbg = System.Management.Automation; diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/PassThroughContentCommandBase.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/PassThroughContentCommandBase.cs index 0164d645b..4d4328eed 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/PassThroughContentCommandBase.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/PassThroughContentCommandBase.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Management.Automation; using Dbg = System.Management.Automation; diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/PassThroughPropertyCommandBase.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/PassThroughPropertyCommandBase.cs index b1fd3f288..71c51d245 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/PassThroughPropertyCommandBase.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/PassThroughPropertyCommandBase.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Management.Automation; using Dbg = System.Management.Automation; diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/PingPathCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/PingPathCommand.cs index d08f7ae42..cd9a35567 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/PingPathCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/PingPathCommand.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Management.Automation; using Dbg = System.Management.Automation; diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/PropertyCommandBase.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/PropertyCommandBase.cs index 159e0c829..bd707d4cc 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/PropertyCommandBase.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/PropertyCommandBase.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Management.Automation; using Dbg = System.Management.Automation; diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/RemovePropertyCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/RemovePropertyCommand.cs index 0082f9ec3..9bb05626d 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/RemovePropertyCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/RemovePropertyCommand.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Management.Automation; using Dbg = System.Management.Automation; diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/RenamePropertyCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/RenamePropertyCommand.cs index e1279b398..28af7a8be 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/RenamePropertyCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/RenamePropertyCommand.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Management.Automation; using Dbg = System.Management.Automation; diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/RollbackTransactionCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/RollbackTransactionCommand.cs index fa9a3c4be..1d33e5118 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/RollbackTransactionCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/RollbackTransactionCommand.cs @@ -2,9 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Management.Automation; -using System.Management.Automation.Provider; using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/SetContentCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/SetContentCommand.cs index d806b9da8..3c404aa98 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/SetContentCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/SetContentCommand.cs @@ -2,10 +2,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Management.Automation; using System.Management.Automation.Internal; -using System.Management.Automation.Provider; using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/UseTransactionCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/UseTransactionCommand.cs index 84d9b1fc0..6d7d2b6b9 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/UseTransactionCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/UseTransactionCommand.cs @@ -5,7 +5,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Management.Automation; using System.Management.Automation.Internal; -using System.Management.Automation.Provider; using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/singleshell/installer/MshManagementMshSnapin.cs b/src/Microsoft.PowerShell.Commands.Management/singleshell/installer/MshManagementMshSnapin.cs index 49166075b..bb9a99944 100644 --- a/src/Microsoft.PowerShell.Commands.Management/singleshell/installer/MshManagementMshSnapin.cs +++ b/src/Microsoft.PowerShell.Commands.Management/singleshell/installer/MshManagementMshSnapin.cs @@ -2,15 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; using System.ComponentModel; -using System.Configuration.Install; -using System.Reflection; -using Microsoft.Win32; -using System.IO; using System.Management.Automation; namespace Microsoft.PowerShell diff --git a/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj b/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj index 61dda3786..3f68e6d83 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj +++ b/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj @@ -42,6 +42,12 @@ + + C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Drawing.dll + + + C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Numerics.dll + @@ -253,4 +259,4 @@ - + \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/HeaderInfo.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/HeaderInfo.cs index 0e904588c..b048eedde 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/HeaderInfo.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/HeaderInfo.cs @@ -5,9 +5,7 @@ namespace Microsoft.PowerShell.Commands { using System; - using System.Collections; using System.Collections.Generic; - using System.Globalization; using System.Management.Automation; internal class HeaderInfo diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OriginalColumnInfo.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OriginalColumnInfo.cs index f64e272b0..f1737bbaf 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OriginalColumnInfo.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OriginalColumnInfo.cs @@ -6,7 +6,6 @@ namespace Microsoft.PowerShell.Commands { using System; using System.Collections; - using System.Globalization; using System.Management.Automation; using Microsoft.PowerShell.Commands.Internal.Format; diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutGridViewCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutGridViewCommand.cs index 06cca58ad..056523481 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutGridViewCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutGridViewCommand.cs @@ -7,16 +7,11 @@ namespace Microsoft.PowerShell.Commands using System; using System.Collections; using System.Collections.Generic; - using System.Collections.ObjectModel; - using System.Globalization; - using System.Reflection; - using System.Threading; using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Runspaces; using Microsoft.PowerShell.Commands.Internal.Format; - using Microsoft.Win32; /// /// Enum for SelectionMode parameter. diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutWindowProxy.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutWindowProxy.cs index 0b89517ee..5622f0532 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutWindowProxy.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutWindowProxy.cs @@ -6,14 +6,11 @@ namespace Microsoft.PowerShell.Commands { using System; using System.Collections.Generic; - using System.Globalization; using System.IO; using System.Threading; using System.Reflection; using System.Management.Automation; using System.Management.Automation.Internal; - using System.Management.Automation.Runspaces; - using Microsoft.PowerShell.Commands.Internal.Format; internal class OutWindowProxy : IDisposable diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/common/GetFormatDataCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/common/GetFormatDataCommand.cs index 890ca59ce..ba65208c1 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/common/GetFormatDataCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/common/GetFormatDataCommand.cs @@ -8,7 +8,6 @@ using System.Management.Automation; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Management.Automation.Runspaces; -using System.Management.Automation.Tracing; using Microsoft.PowerShell.Commands.Internal.Format; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-list/Format-List.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-list/Format-List.cs index 19a204652..e552ef22e 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-list/Format-List.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-list/Format-List.cs @@ -2,8 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; using System.Management.Automation; using Microsoft.PowerShell.Commands.Internal.Format; diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-object/format-object.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-object/format-object.cs index 2459882dd..a7d1672ba 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-object/format-object.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-object/format-object.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Management.Automation; using Microsoft.PowerShell.Commands.Internal.Format; diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-table/Format-Table.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-table/Format-Table.cs index 2b4eca9e8..4ad89e89e 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-table/Format-Table.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-table/Format-Table.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Management.Automation; using Microsoft.PowerShell.Commands.Internal.Format; diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/PrinterLineOutput.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/PrinterLineOutput.cs index 9f75b849e..82f8fbb99 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/PrinterLineOutput.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/PrinterLineOutput.cs @@ -3,8 +3,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.IO; -using System.Text; using System.Collections.Generic; using System.Drawing; using System.Drawing.Printing; diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/out-printer.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/out-printer.cs index 6edd7a7a2..f860879a8 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/out-printer.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/out-printer.cs @@ -2,17 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; -using System.Collections.ObjectModel; -using System.Reflection; -using System.Globalization; using System.Management.Automation; -using System.IO; - -using System.Drawing; -using System.Drawing.Printing; - using Microsoft.PowerShell.Commands.Internal.Format; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetHostCmdlet.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetHostCmdlet.cs index 06109519f..dbcf4c3a0 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetHostCmdlet.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetHostCmdlet.cs @@ -3,8 +3,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ - -using System; using System.Management.Automation; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetMember.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetMember.cs index ddfa5ea73..d7c5af786 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetMember.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetMember.cs @@ -8,7 +8,6 @@ using System.Collections.Specialized; using System.Management.Automation; using System.Management.Automation.Internal; using System.Reflection; -using System.Text; namespace Microsoft.PowerShell.Commands { diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetRandomCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetRandomCommand.cs index bc053499a..b0eab18c1 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetRandomCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetRandomCommand.cs @@ -8,8 +8,8 @@ using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Management.Automation; using System.Management.Automation.Runspaces; -using System.Threading; using System.Numerics; +using System.Threading; using Debug = System.Management.Automation.Diagnostics; using System.Security.Cryptography; diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Import-LocalizedData.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Import-LocalizedData.cs index a1d067404..c6d8aa71f 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Import-LocalizedData.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Import-LocalizedData.cs @@ -7,7 +7,6 @@ using System.Globalization; using System.IO; using System.Management.Automation.Internal; using System.Management.Automation; -using System.Text; using System.Diagnostics.CodeAnalysis; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Send-MailMessage.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Send-MailMessage.cs index 33cb4e151..23673cb0c 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Send-MailMessage.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Send-MailMessage.cs @@ -3,20 +3,11 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.IO; -using System.Net; using System.Text; -using System.Collections; using System.Globalization; using System.Net.Mail; -using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; -using System.Runtime.InteropServices; - using System.Management.Automation; -using System.Management.Automation.Internal; -using Microsoft.PowerShell.Commands.Internal.Format; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommand.cs index 447749110..97b443b0a 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommand.cs @@ -10,7 +10,6 @@ namespace Microsoft.PowerShell.Commands using System.Collections.ObjectModel; using System.Globalization; using System.Management.Automation; - using System.Management.Automation.Internal; using System.Reflection; using System.Runtime.InteropServices; using System.Text; diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandCommandInfo.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandCommandInfo.cs index a8e54ebe9..1b6f15999 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandCommandInfo.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandCommandInfo.cs @@ -7,10 +7,6 @@ namespace Microsoft.PowerShell.Commands.ShowCommandExtension { using System; using System.Collections.Generic; - using System.Collections.ObjectModel; - using System.ComponentModel; - using System.Diagnostics.CodeAnalysis; - using System.Globalization; using System.Linq; using System.Management.Automation; diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandModuleInfo.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandModuleInfo.cs index 6c13d206f..d8e47bee3 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandModuleInfo.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandModuleInfo.cs @@ -6,12 +6,6 @@ namespace Microsoft.PowerShell.Commands.ShowCommandExtension { using System; - using System.Collections.Generic; - using System.Collections.ObjectModel; - using System.ComponentModel; - using System.Diagnostics.CodeAnalysis; - using System.Globalization; - using System.Linq; using System.Management.Automation; /// diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterInfo.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterInfo.cs index c7ef23dbc..2e72c4403 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterInfo.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterInfo.cs @@ -7,10 +7,6 @@ namespace Microsoft.PowerShell.Commands.ShowCommandExtension { using System; using System.Collections.Generic; - using System.Collections.ObjectModel; - using System.ComponentModel; - using System.Diagnostics.CodeAnalysis; - using System.Globalization; using System.Linq; using System.Management.Automation; diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterSetInfo.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterSetInfo.cs index 432c4a2ce..891eae1ea 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterSetInfo.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterSetInfo.cs @@ -7,10 +7,6 @@ namespace Microsoft.PowerShell.Commands.ShowCommandExtension { using System; using System.Collections.Generic; - using System.Collections.ObjectModel; - using System.ComponentModel; - using System.Diagnostics.CodeAnalysis; - using System.Globalization; using System.Linq; using System.Management.Automation; diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterType.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterType.cs index a0f3bbc72..1cdd90561 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterType.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterType.cs @@ -8,12 +8,6 @@ namespace Microsoft.PowerShell.Commands.ShowCommandExtension { using System; using System.Collections; - using System.Collections.Generic; - using System.Collections.ObjectModel; - using System.ComponentModel; - using System.Diagnostics.CodeAnalysis; - using System.Globalization; - using System.Linq; using System.Management.Automation; diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandProxy.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandProxy.cs index c6c440a42..e691678d8 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandProxy.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandProxy.cs @@ -7,12 +7,8 @@ namespace Microsoft.PowerShell.Commands { using System; using System.Collections.Generic; - using System.Diagnostics.CodeAnalysis; - using System.Globalization; - using System.IO; using System.Management.Automation; using System.Management.Automation.Internal; - using System.Reflection; using System.Threading; using System.Collections.ObjectModel; using Microsoft.PowerShell.Commands.ShowCommandExtension; diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Update-Data.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Update-Data.cs index dc9316dbe..ac2117311 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Update-Data.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Update-Data.cs @@ -5,8 +5,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Management.Automation; using System.Collections.ObjectModel; -using System.Management.Automation.Runspaces; -using System.Management.Automation.Provider; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Update-TypeData.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Update-TypeData.cs index 73c317424..37ee96269 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Update-TypeData.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Update-TypeData.cs @@ -7,7 +7,6 @@ using System.Collections.Concurrent; using System.Collections.Generic; using System.Globalization; using System.Reflection; -using System.Threading; using System.Management.Automation; using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/UtilityCommon.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/UtilityCommon.cs index ca46d5d9b..1b67ba01c 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/UtilityCommon.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/UtilityCommon.cs @@ -7,7 +7,6 @@ using System.Management.Automation; using System.Management.Automation.Runspaces; using System.Text; using System.Diagnostics.CodeAnalysis; -using System.Collections.Generic; using System.Globalization; diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/ConvertFromJsonCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/ConvertFromJsonCommand.cs index 7c89579d5..c83349555 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/ConvertFromJsonCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/ConvertFromJsonCommand.cs @@ -6,7 +6,6 @@ using System; using System.Collections.Generic; using System.Management.Automation; using System.Reflection; -using System.Text; namespace Microsoft.PowerShell.Commands { diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/FormObject.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/FormObject.cs index d815a3e49..1ae2083a5 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/FormObject.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/FormObject.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.Generic; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/JsonObject.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/JsonObject.cs index 159328d05..04bb9bef4 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/JsonObject.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/JsonObject.cs @@ -7,14 +7,13 @@ using System.Collections.Generic; using System.Globalization; using System.Diagnostics.CodeAnalysis; using System.Management.Automation; -using System.IO; -using System.Reflection; -using System.Collections.ObjectModel; -using System.Management.Automation.Internal; - #if CORECLR using Newtonsoft.Json; using Newtonsoft.Json.Linq; +using System.Collections.ObjectModel; +using System.IO; +using System.Management.Automation.Internal; +using System.Reflection; #else using System.Web.Script.Serialization; using System.Collections.Specialized; diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebCmdletElementCollection.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebCmdletElementCollection.cs index 3989a5785..1c9e6f496 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebCmdletElementCollection.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebCmdletElementCollection.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.ObjectModel; using System.Management.Automation; using System.Collections.Generic; diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WriteConsoleCmdlet.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WriteConsoleCmdlet.cs index b98a545f6..2bd40fc6d 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WriteConsoleCmdlet.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WriteConsoleCmdlet.cs @@ -5,7 +5,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Management.Automation; using System.Collections; -using System.Collections.Generic; using System.Text; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/convert-HTML.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/convert-HTML.cs index 0810d5549..420dd9cd7 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/convert-HTML.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/convert-HTML.cs @@ -7,11 +7,9 @@ using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Diagnostics.CodeAnalysis; -using System.IO; using System.Management.Automation; using System.Management.Automation.Internal; using System.Net; -using System.Reflection; using System.Text; using Microsoft.PowerShell.Commands.Internal.Format; diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/trace/MshHostTraceListener.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/trace/MshHostTraceListener.cs index d7cc4aed0..1211f0b40 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/trace/MshHostTraceListener.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/trace/MshHostTraceListener.cs @@ -3,10 +3,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.IO; using System.Text; using System.Management.Automation; -using System.Management.Automation.Host; using System.Management.Automation.Internal.Host; #if CORECLR diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/trace/TraceCommandBase.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/trace/TraceCommandBase.cs index 1dfb756b6..c927c11fc 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/trace/TraceCommandBase.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/trace/TraceCommandBase.cs @@ -5,7 +5,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; using System.Management.Automation; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/trace/TraceExpressionCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/trace/TraceExpressionCommand.cs index 69348b948..362cb4b6f 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/trace/TraceExpressionCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/trace/TraceExpressionCommand.cs @@ -3,7 +3,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.Collections; using System.Collections.ObjectModel; using System.Diagnostics; using System.IO; diff --git a/src/Microsoft.PowerShell.Commands.Utility/singleshell/installer/MshUtilityMshSnapin.cs b/src/Microsoft.PowerShell.Commands.Utility/singleshell/installer/MshUtilityMshSnapin.cs index 9920e6b9c..a222fdfcc 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/singleshell/installer/MshUtilityMshSnapin.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/singleshell/installer/MshUtilityMshSnapin.cs @@ -2,15 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; using System.ComponentModel; -using System.Configuration.Install; -using System.Reflection; -using Microsoft.Win32; -using System.IO; using System.Management.Automation; namespace Microsoft.PowerShell diff --git a/src/Microsoft.PowerShell.ConsoleHost/AssemblyInfo.cs b/src/Microsoft.PowerShell.ConsoleHost/AssemblyInfo.cs index 048403f35..fe175aaf4 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/AssemblyInfo.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/AssemblyInfo.cs @@ -1,10 +1,9 @@ -using System.Diagnostics.CodeAnalysis; using System.Reflection; -using System.Resources; using System.Runtime.CompilerServices; #if !CORECLR using System.Runtime.ConstrainedExecution; -using System.Security.Permissions; +#else +using System.Resources; #endif [assembly: InternalsVisibleTo("powershell-tests,PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cs index b0bac1649..02b0a2c03 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cs @@ -8,14 +8,11 @@ using System.Text; using System.Text.RegularExpressions; using System.Globalization; using System.IO; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Management.Automation; using System.Management.Automation.Runspaces; -using System.Management.Automation.Host; using System.Management.Automation.Internal; using System.Diagnostics; -using Microsoft.Win32; using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHost.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHost.cs index 9d44553d5..2c2779b9d 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHost.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHost.cs @@ -22,7 +22,6 @@ using System.Management.Automation.Remoting; using System.Management.Automation.Security; using System.Threading; using System.Runtime.InteropServices; -using Microsoft.Win32.SafeHandles; using System.Management.Automation.Language; #if CORECLR using Microsoft.PowerShell.CoreClr.Stubs; diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostRawUserInterface.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostRawUserInterface.cs index ca1726418..966e81b30 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostRawUserInterface.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostRawUserInterface.cs @@ -6,12 +6,9 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System; -using System.Runtime.InteropServices; -using System.Collections; using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Host; -using System.Reflection; using System.ComponentModel; using System.Globalization; using System.Security.Principal; diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostTranscript.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostTranscript.cs index eb77ed1da..49c940f5c 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostTranscript.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostTranscript.cs @@ -5,15 +5,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System; -using System.Text; -using System.Collections; -using System.Collections.Specialized; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Globalization; using System.IO; -using System.Reflection; -using System.Management.Automation; using System.Management.Automation.Host; using System.Management.Automation.Internal; diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfaceProgress.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfaceProgress.cs index 66f2198a0..d273c3d06 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfaceProgress.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfaceProgress.cs @@ -5,11 +5,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System; -using System.Collections; -using System.Collections.Generic; using System.Management.Automation; -using System.Management.Automation.Host; - using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfacePrompt.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfacePrompt.cs index 0983adeef..7e619d51c 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfacePrompt.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfacePrompt.cs @@ -14,8 +14,6 @@ using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Host; using System.Security; -using System.Reflection; - using Dbg = System.Management.Automation.Diagnostics; using InternalHostUserInterface = System.Management.Automation.Internal.Host.InternalHostUserInterface; diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfacePromptForChoice.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfacePromptForChoice.cs index 10918e18b..e01f1a735 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfacePromptForChoice.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfacePromptForChoice.cs @@ -6,7 +6,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Globalization; -using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text; diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfaceSecurity.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfaceSecurity.cs index f5e46f884..bff625594 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfaceSecurity.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfaceSecurity.cs @@ -3,13 +3,9 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.Text; -using System.Collections.Generic; -using System.Runtime.InteropServices; using System.Security; using System.Management.Automation; using System.Management.Automation.Internal; -using System.Threading; using Microsoft.Win32; using System.Globalization; diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleShell.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleShell.cs index 04841952c..d53989aa4 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleShell.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleShell.cs @@ -3,9 +3,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System.Management.Automation; -using System.Management.Automation.Host; using System.Management.Automation.Runspaces; -using Microsoft.PowerShell; namespace Microsoft.PowerShell { diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleTextWriter.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleTextWriter.cs index 0e036a7b3..eb6a976e8 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleTextWriter.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleTextWriter.cs @@ -7,15 +7,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Text; using System.IO; -using System.Management.Automation; -using System.Management.Automation.Host; -using System.Management.Automation.Internal; -using Microsoft.PowerShell; -using System.Threading; -using System.Runtime.InteropServices; -using Microsoft.Win32.SafeHandles; - - using Dbg = System.Management.Automation.Diagnostics; using ConsoleHandle = Microsoft.Win32.SafeHandles.SafeFileHandle; using HRESULT = System.UInt32; diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/Executor.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/Executor.cs index 6099d1371..d9788e8a6 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/Executor.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/Executor.cs @@ -3,15 +3,9 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.IO; -using System.Text; -using System.Collections; using System.Collections.ObjectModel; -using System.Globalization; using System.Management.Automation; using System.Management.Automation.Runspaces; -using System.Collections.Generic; -using System.Xml; using System.Diagnostics.CodeAnalysis; using System.Linq; diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ManagedEntrance.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ManagedEntrance.cs index 5bbacac4f..0ab20d332 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ManagedEntrance.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ManagedEntrance.cs @@ -3,13 +3,14 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.Threading; using System.Reflection; using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Runspaces; using System.Management.Automation.Tracing; +#if CORECLR using System.Runtime.InteropServices; +#endif namespace Microsoft.PowerShell { diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/PendingProgress.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/PendingProgress.cs index 8dc81cb99..0b743d5f8 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/PendingProgress.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/PendingProgress.cs @@ -6,7 +6,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Collections; -using System.Collections.ObjectModel; using System.Management.Automation; using System.Management.Automation.Host; using System.Management.Automation.Internal; diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ProgressPane.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ProgressPane.cs index 99a394964..cf3586364 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ProgressPane.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ProgressPane.cs @@ -5,8 +5,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System; -using System.Collections; -using System.Collections.Generic; using System.Management.Automation.Host; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/Serialization.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/Serialization.cs index dee202393..d0a177c35 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/Serialization.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/Serialization.cs @@ -3,12 +3,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.Text; using System.IO; using System.Management.Automation; -using System.Management.Automation.Host; -using System.Management.Automation.Internal; -using Microsoft.PowerShell; using System.Xml; diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/StartTranscriptCmdlet.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/StartTranscriptCmdlet.cs index 7bf968163..e27cf55c5 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/StartTranscriptCmdlet.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/StartTranscriptCmdlet.cs @@ -9,8 +9,6 @@ using System.Collections.ObjectModel; using System.IO; using System.Management.Automation; using System.Management.Automation.Internal; -using System.Management.Automation.Internal.Host; - namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/StopTranscriptCmdlet.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/StopTranscriptCmdlet.cs index deb3960cb..1bbb3d8b7 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/StopTranscriptCmdlet.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/StopTranscriptCmdlet.cs @@ -7,9 +7,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Management.Automation; using System.Management.Automation.Internal; -using System.Management.Automation.Internal.Host; - - namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.ConsoleHost/singleshell/installer/EngineInstaller.cs b/src/Microsoft.PowerShell.ConsoleHost/singleshell/installer/EngineInstaller.cs index bcc5467e6..47285d079 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/singleshell/installer/EngineInstaller.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/singleshell/installer/EngineInstaller.cs @@ -3,15 +3,10 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.Collections; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.ComponentModel; -using System.Configuration.Install; using System.Reflection; -using Microsoft.Win32; using System.IO; -using System.Management.Automation.Runspaces; using System.Management.Automation; namespace Microsoft.PowerShell diff --git a/src/Microsoft.PowerShell.ConsoleHost/singleshell/installer/MshHostMshSnapin.cs b/src/Microsoft.PowerShell.ConsoleHost/singleshell/installer/MshHostMshSnapin.cs index 615d5dfc2..cdf884e93 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/singleshell/installer/MshHostMshSnapin.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/singleshell/installer/MshHostMshSnapin.cs @@ -2,15 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; using System.ComponentModel; -using System.Configuration.Install; -using System.Reflection; -using Microsoft.Win32; -using System.IO; using System.Management.Automation; namespace Microsoft.PowerShell diff --git a/src/System.Management.Automation/DscSupport/CimDSCParser.cs b/src/System.Management.Automation/DscSupport/CimDSCParser.cs index a1725bff0..2a2da8a05 100644 --- a/src/System.Management.Automation/DscSupport/CimDSCParser.cs +++ b/src/System.Management.Automation/DscSupport/CimDSCParser.cs @@ -13,8 +13,6 @@ using System.IO; using System.Linq; using System.Management.Automation; using System.Management.Automation.Language; -using System.Management.Automation.Runspaces; -using System.Management.Automation.Security; using System.Runtime.InteropServices; using System.Reflection; using System.Text; diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseCommand.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseCommand.cs index 361566b3e..ba2bb8363 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseCommand.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseCommand.cs @@ -4,9 +4,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Management.Automation; -using System.Collections; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Management.Automation.Internal; using System.Management.Automation.Language; diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseFormattingCommandParameters.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseFormattingCommandParameters.cs index 4a8864d0b..88d65c8e9 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseFormattingCommandParameters.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseFormattingCommandParameters.cs @@ -5,10 +5,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Collections; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Management.Automation; using System.Management.Automation.Internal; -using System.ComponentModel; namespace Microsoft.PowerShell.Commands.Internal.Format { diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseOutputtingCommand.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseOutputtingCommand.cs index eb5f6dbfa..e96bac5ee 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseOutputtingCommand.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseOutputtingCommand.cs @@ -3,10 +3,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.Collections; using System.Collections.Specialized; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Management.Automation; using System.Management.Automation.Internal; diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/ColumnWidthManager.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/ColumnWidthManager.cs index fd23f79f4..c2df10416 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/ColumnWidthManager.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/ColumnWidthManager.cs @@ -2,8 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; - namespace Microsoft.PowerShell.Commands.Internal.Format { /// diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/commands.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/commands.cs index 677a0ef21..6fd6a83d9 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/commands.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/commands.cs @@ -3,12 +3,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.IO; -using System.Xml; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Management.Automation; - using Microsoft.PowerShell.Commands.Internal.Format; namespace Microsoft.PowerShell.Commands diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/displayDescriptionDataMethods.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/displayDescriptionDataMethods.cs index e68de768e..2553ddeb1 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/displayDescriptionDataMethods.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/displayDescriptionDataMethods.cs @@ -2,10 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; -using System.Collections.Generic; - namespace Microsoft.PowerShell.Commands.Internal.Format { #region Type Info Database diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/displayDescriptionData_List.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/displayDescriptionData_List.cs index 9d612673f..d44e5647b 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/displayDescriptionData_List.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/displayDescriptionData_List.cs @@ -6,7 +6,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. // containing display and formatting information using System.Collections.Generic; -using System.Xml; using Microsoft.PowerShell.Commands; using Microsoft.PowerShell.Commands.Internal.Format; diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/displayDescriptionData_Misc.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/displayDescriptionData_Misc.cs index 65290f596..b5a2075e6 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/displayDescriptionData_Misc.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/displayDescriptionData_Misc.cs @@ -5,10 +5,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. // this file contains the data structures for the in memory database // containing display and formatting information -using System; -using System.Collections; -using System.Collections.ObjectModel; - namespace Microsoft.PowerShell.Commands.Internal.Format { /// diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataManager.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataManager.cs index bbb57af17..0e8b8405a 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataManager.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataManager.cs @@ -3,17 +3,10 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.Collections; using System.Collections.Concurrent; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Collections.Specialized; -using System.Xml; -using System.Reflection; using System.IO; -using System.Diagnostics; -using System.Text; - using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Host; diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader.cs index b43f275aa..2994c50f6 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader.cs @@ -3,11 +3,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.Collections; using System.Collections.Concurrent; using System.Collections.Generic; -using System.Collections.Specialized; -using System.Collections.ObjectModel; using System.Xml; using System.Globalization; diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Complex.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Complex.cs index 715e90219..51bf9ee81 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Complex.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Complex.cs @@ -3,12 +3,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.Collections; using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Collections.Specialized; using System.Xml; -using System.Globalization; using System.Management.Automation.Internal; namespace Microsoft.PowerShell.Commands.Internal.Format diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_List.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_List.cs index 108154553..fdd873d68 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_List.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_List.cs @@ -2,11 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Collections.Specialized; using System.Xml; using System.Management.Automation.Internal; diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Table.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Table.cs index a71efe65e..1eec28946 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Table.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Table.cs @@ -3,12 +3,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.Collections; using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Collections.Specialized; using System.Xml; -using System.Globalization; using System.Management.Automation.Internal; namespace Microsoft.PowerShell.Commands.Internal.Format diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Views.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Views.cs index 95199b2d9..b1f5cf475 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Views.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Views.cs @@ -2,11 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Collections.Specialized; using System.Management.Automation; using System.Xml; using System.Globalization; diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Wide.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Wide.cs index 68cb64f12..7ee26d98d 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Wide.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Wide.cs @@ -2,10 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; using System.Collections.Generic; -using System.Collections.Specialized; using System.Xml; using System.Management.Automation.Internal; diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator.cs index 0b845f6af..c6eff9330 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator.cs @@ -3,13 +3,10 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Management.Automation; using System.Management.Automation.Internal; -using System.Globalization; namespace Microsoft.PowerShell.Commands.Internal.Format { diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_Complex.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_Complex.cs index 788c09c0b..d66f55970 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_Complex.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_Complex.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_List.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_List.cs index 07fc6f731..57639ee8a 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_List.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_List.cs @@ -2,8 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Management.Automation; diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_Table.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_Table.cs index 019c73a96..c94a02a8f 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_Table.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_Table.cs @@ -3,7 +3,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Management.Automation; diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_Wide.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_Wide.cs index 0c77afb99..d99159e4b 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_Wide.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_Wide.cs @@ -2,8 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Management.Automation; diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormattingObjects.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormattingObjects.cs index d86a4f96c..bbfd93b01 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormattingObjects.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormattingObjects.cs @@ -22,12 +22,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. // preserve the information. // -using System; -using System.Globalization; -using System.Collections; using System.Collections.Generic; -using System.Collections.Specialized; -using System.Management.Automation; namespace Microsoft.PowerShell.Commands.Internal.Format diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/ListWriter.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/ListWriter.cs index e8d470b7e..c8e99f488 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/ListWriter.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/ListWriter.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.Specialized; using System.Diagnostics; diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/OutputManager.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/OutputManager.cs index 5eec3ca0e..d2e6d7053 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/OutputManager.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/OutputManager.cs @@ -3,7 +3,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.Collections; using System.Collections.Specialized; using System.Collections.Generic; using System.Management.Automation; diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/OutputQueue.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/OutputQueue.cs index d3a0d444b..a2be8c9a9 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/OutputQueue.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/OutputQueue.cs @@ -4,9 +4,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Diagnostics; -using System.Collections; using System.Collections.Generic; -using System.Management.Automation; namespace Microsoft.PowerShell.Commands.Internal.Format { diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/TableWriter.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/TableWriter.cs index 28d2dd1bd..a46c7d21b 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/TableWriter.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/TableWriter.cs @@ -2,11 +2,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; using System.Collections.Specialized; using System.Text; -using System.Management.Automation.Internal; namespace Microsoft.PowerShell.Commands.Internal.Format { diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/Utilities/MshParameterAssociation.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/Utilities/MshParameterAssociation.cs index 6e308fe56..21152af43 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/Utilities/MshParameterAssociation.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/Utilities/MshParameterAssociation.cs @@ -4,7 +4,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Management.Automation; -using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/Utilities/Mshexpression.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/Utilities/Mshexpression.cs index 815db46c8..16b84a9ee 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/Utilities/Mshexpression.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/Utilities/Mshexpression.cs @@ -4,7 +4,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Management.Automation; -using Microsoft.PowerShell.Commands; using System.Management.Automation.Internal; using System.Collections; using System.Collections.Generic; diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/format-default/format-default.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/format-default/format-default.cs index 5d75d4dde..fb2920644 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/format-default/format-default.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/format-default/format-default.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Management.Automation; using Microsoft.PowerShell.Commands.Internal.Format; diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/out-console/ConsoleLineOutput.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/out-console/ConsoleLineOutput.cs index 04797cc2e..25072abde 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/out-console/ConsoleLineOutput.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/out-console/ConsoleLineOutput.cs @@ -6,12 +6,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. // characters //#define TEST_MULTICELL_ON_SINGLE_CELL_LOCALE -using System; -using System.Collections; using System.Collections.Specialized; -using System.IO; -using System.Text; - using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Host; diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/out-console/OutConsole.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/out-console/OutConsole.cs index 1af735639..a27a9a379 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/out-console/OutConsole.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/out-console/OutConsole.cs @@ -6,17 +6,10 @@ namespace Microsoft.PowerShell.Commands { using System; using System.Collections; - using System.Collections.Generic; - using System.Collections.ObjectModel; - using System.Reflection; using System.Management.Automation; using System.Management.Automation.Host; using System.Management.Automation.Internal; using Microsoft.PowerShell.Commands.Internal.Format; - using System.IO; - using System.Diagnostics; - using System.Globalization; - using Microsoft.Win32; /// /// diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/out-textInterface/OutTextInterface.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/out-textInterface/OutTextInterface.cs index b84c55768..107c64e53 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/out-textInterface/OutTextInterface.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/out-textInterface/OutTextInterface.cs @@ -3,8 +3,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.Collections; -using System.Reflection; using System.Management.Automation; using System.Management.Automation.Internal; diff --git a/src/System.Management.Automation/engine/AliasInfo.cs b/src/System.Management.Automation/engine/AliasInfo.cs index 15b1a465e..da89a49a1 100644 --- a/src/System.Management.Automation/engine/AliasInfo.cs +++ b/src/System.Management.Automation/engine/AliasInfo.cs @@ -2,11 +2,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; -using System.Management.Automation.Internal; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/ApplicationInfo.cs b/src/System.Management.Automation/engine/ApplicationInfo.cs index 044dcaef9..1aa795492 100644 --- a/src/System.Management.Automation/engine/ApplicationInfo.cs +++ b/src/System.Management.Automation/engine/ApplicationInfo.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Diagnostics; using System.Collections.ObjectModel; using System.Collections.Generic; diff --git a/src/System.Management.Automation/engine/ArgumentTypeConverterAttribute.cs b/src/System.Management.Automation/engine/ArgumentTypeConverterAttribute.cs index 1716c8dd9..4601f48ff 100644 --- a/src/System.Management.Automation/engine/ArgumentTypeConverterAttribute.cs +++ b/src/System.Management.Automation/engine/ArgumentTypeConverterAttribute.cs @@ -2,8 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections.Generic; using System.Globalization; using System.Linq; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/Attributes.cs b/src/System.Management.Automation/engine/Attributes.cs index 8cb3aa7b6..771da8e35 100644 --- a/src/System.Management.Automation/engine/Attributes.cs +++ b/src/System.Management.Automation/engine/Attributes.cs @@ -2,17 +2,9 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections; using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Text; using System.Text.RegularExpressions; -using System.IO; -using System.Resources; -using System.Threading; -using System.Reflection; -using System.Runtime.Serialization; using System.Globalization; using System.Management.Automation.Internal; using System.Diagnostics.CodeAnalysis; diff --git a/src/System.Management.Automation/engine/AutomationEngine.cs b/src/System.Management.Automation/engine/AutomationEngine.cs index 192d14a66..cc0142663 100644 --- a/src/System.Management.Automation/engine/AutomationEngine.cs +++ b/src/System.Management.Automation/engine/AutomationEngine.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Linq; using System.Management.Automation.Host; using System.Management.Automation.Language; diff --git a/src/System.Management.Automation/engine/AutomationNull.cs b/src/System.Management.Automation/engine/AutomationNull.cs index 7da16f530..c45f0b1a3 100644 --- a/src/System.Management.Automation/engine/AutomationNull.cs +++ b/src/System.Management.Automation/engine/AutomationNull.cs @@ -2,9 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Management.Automation; - namespace System.Management.Automation.Internal { /// diff --git a/src/System.Management.Automation/engine/COM/ComAdapter.cs b/src/System.Management.Automation/engine/COM/ComAdapter.cs index ecec00ea4..f2eebbe32 100644 --- a/src/System.Management.Automation/engine/COM/ComAdapter.cs +++ b/src/System.Management.Automation/engine/COM/ComAdapter.cs @@ -6,9 +6,12 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text; using System.ComponentModel; -using System.Reflection; using Microsoft.PowerShell; +#if CORECLR +using System.Reflection; +#endif + namespace System.Management.Automation { /// diff --git a/src/System.Management.Automation/engine/ChildrenCmdletProviderInterfaces.cs b/src/System.Management.Automation/engine/ChildrenCmdletProviderInterfaces.cs index c743b68a9..fcff19c21 100644 --- a/src/System.Management.Automation/engine/ChildrenCmdletProviderInterfaces.cs +++ b/src/System.Management.Automation/engine/ChildrenCmdletProviderInterfaces.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.ObjectModel; using Dbg = System.Management.Automation; diff --git a/src/System.Management.Automation/engine/CmdletFamilyProviderInterfaces.cs b/src/System.Management.Automation/engine/CmdletFamilyProviderInterfaces.cs index 5f507bd04..b65fde53e 100644 --- a/src/System.Management.Automation/engine/CmdletFamilyProviderInterfaces.cs +++ b/src/System.Management.Automation/engine/CmdletFamilyProviderInterfaces.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using Dbg = System.Management.Automation; using System.Management.Automation.Internal; diff --git a/src/System.Management.Automation/engine/CmdletInfo.cs b/src/System.Management.Automation/engine/CmdletInfo.cs index 44c21c180..0108f9ec3 100644 --- a/src/System.Management.Automation/engine/CmdletInfo.cs +++ b/src/System.Management.Automation/engine/CmdletInfo.cs @@ -2,15 +2,10 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.ObjectModel; using System.Collections.Generic; -using System.Management.Automation; -using System.Management.Automation.Runspaces; -using System.Management.Automation.Internal; using System.Reflection; using System.Text; -using System.Threading; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/CodeMethods.cs b/src/System.Management.Automation/engine/CodeMethods.cs index c1cd88a7d..bdc6ecb4f 100644 --- a/src/System.Management.Automation/engine/CodeMethods.cs +++ b/src/System.Management.Automation/engine/CodeMethods.cs @@ -6,7 +6,6 @@ using System; using System.Collections; using System.Reflection; using System.Globalization; -using System.Xml; using System.Management.Automation; using System.Diagnostics.CodeAnalysis; using System.DirectoryServices; diff --git a/src/System.Management.Automation/engine/ComInterop/BoolArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/BoolArgBuilder.cs index 476ff9cd8..3884e5142 100644 --- a/src/System.Management.Automation/engine/ComInterop/BoolArgBuilder.cs +++ b/src/System.Management.Automation/engine/ComInterop/BoolArgBuilder.cs @@ -8,13 +8,7 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System.Collections.Generic; - -using System; using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; namespace System.Management.Automation.ComInterop { diff --git a/src/System.Management.Automation/engine/ComInterop/BoundDispEvent.cs b/src/System.Management.Automation/engine/ComInterop/BoundDispEvent.cs index 1ff0a095a..63152c42e 100644 --- a/src/System.Management.Automation/engine/ComInterop/BoundDispEvent.cs +++ b/src/System.Management.Automation/engine/ComInterop/BoundDispEvent.cs @@ -8,12 +8,8 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Dynamic; -using System.Runtime.CompilerServices; -using System.Security; -using System.Security.Permissions; + //using Microsoft.Scripting.Utils; namespace System.Management.Automation.ComInterop diff --git a/src/System.Management.Automation/engine/ComInterop/CollectionExtensions.cs b/src/System.Management.Automation/engine/ComInterop/CollectionExtensions.cs index 883ca5ee3..b3c7d7e0f 100644 --- a/src/System.Management.Automation/engine/ComInterop/CollectionExtensions.cs +++ b/src/System.Management.Automation/engine/ComInterop/CollectionExtensions.cs @@ -3,9 +3,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Diagnostics; -using System; namespace System.Management.Automation.ComInterop { diff --git a/src/System.Management.Automation/engine/ComInterop/ComBinder.cs b/src/System.Management.Automation/engine/ComInterop/ComBinder.cs index 2644e5c6c..f38696791 100644 --- a/src/System.Management.Automation/engine/ComInterop/ComBinder.cs +++ b/src/System.Management.Automation/engine/ComInterop/ComBinder.cs @@ -8,12 +8,8 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using System.Security; -using System.Security.Permissions; using System.Management.Automation.Language; //using Microsoft.Scripting.Utils; using System.Dynamic; diff --git a/src/System.Management.Automation/engine/ComInterop/ComBinderHelpers.cs b/src/System.Management.Automation/engine/ComInterop/ComBinderHelpers.cs index 22a635f9f..b59fb4acd 100644 --- a/src/System.Management.Automation/engine/ComInterop/ComBinderHelpers.cs +++ b/src/System.Management.Automation/engine/ComInterop/ComBinderHelpers.cs @@ -8,16 +8,11 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Diagnostics; using System.Dynamic; -using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Globalization; -using System.Management.Automation; using System.Management.Automation.Language; namespace System.Management.Automation.ComInterop diff --git a/src/System.Management.Automation/engine/ComInterop/ComClassMetaObject.cs b/src/System.Management.Automation/engine/ComInterop/ComClassMetaObject.cs index 9eb545bcc..32029435f 100644 --- a/src/System.Management.Automation/engine/ComInterop/ComClassMetaObject.cs +++ b/src/System.Management.Automation/engine/ComInterop/ComClassMetaObject.cs @@ -12,7 +12,6 @@ using Microsoft.Scripting.Ast; using System.Dynamic; //using AstUtils = Microsoft.Scripting.Ast.Utils; -using System.Management.Automation.Interpreter; using AstUtils = System.Management.Automation.Interpreter.Utils; namespace System.Management.Automation.ComInterop diff --git a/src/System.Management.Automation/engine/ComInterop/ComEventDesc.cs b/src/System.Management.Automation/engine/ComInterop/ComEventDesc.cs index f35661aa5..3c77c81bb 100644 --- a/src/System.Management.Automation/engine/ComInterop/ComEventDesc.cs +++ b/src/System.Management.Automation/engine/ComInterop/ComEventDesc.cs @@ -4,8 +4,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. #if !SILVERLIGHT // ComObject -using System; - namespace System.Management.Automation.ComInterop { internal class ComEventDesc diff --git a/src/System.Management.Automation/engine/ComInterop/ComEventSink.cs b/src/System.Management.Automation/engine/ComInterop/ComEventSink.cs index e3ba55ee9..5a873a581 100644 --- a/src/System.Management.Automation/engine/ComInterop/ComEventSink.cs +++ b/src/System.Management.Automation/engine/ComInterop/ComEventSink.cs @@ -4,13 +4,11 @@ Copyright (c) Microsoft Corporation. All rights reserved. #if !SILVERLIGHT // ComObject -using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Runtime.InteropServices; -using System.Security; using ComTypes = System.Runtime.InteropServices.ComTypes; //using Microsoft.Scripting.Utils; diff --git a/src/System.Management.Automation/engine/ComInterop/ComEventSinkProxy.cs b/src/System.Management.Automation/engine/ComInterop/ComEventSinkProxy.cs index 80760543f..d2c2abb53 100644 --- a/src/System.Management.Automation/engine/ComInterop/ComEventSinkProxy.cs +++ b/src/System.Management.Automation/engine/ComInterop/ComEventSinkProxy.cs @@ -4,15 +4,13 @@ Copyright (c) Microsoft Corporation. All rights reserved. #if !SILVERLIGHT // ComObject -using System; using System.Globalization; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.Remoting; using System.Runtime.Remoting.Messaging; using System.Runtime.Remoting.Proxies; -using System.Security; -using System.Security.Permissions; + //using Microsoft.Scripting.Utils; namespace System.Management.Automation.ComInterop diff --git a/src/System.Management.Automation/engine/ComInterop/ComEventSinksContainer.cs b/src/System.Management.Automation/engine/ComInterop/ComEventSinksContainer.cs index 44bf9ae1d..3f3f5518b 100644 --- a/src/System.Management.Automation/engine/ComInterop/ComEventSinksContainer.cs +++ b/src/System.Management.Automation/engine/ComInterop/ComEventSinksContainer.cs @@ -4,10 +4,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. #if !SILVERLIGHT // ComObject -using System; using System.Collections.Generic; using System.Runtime.InteropServices; -using System.Security; namespace System.Management.Automation.ComInterop { diff --git a/src/System.Management.Automation/engine/ComInterop/ComFallbackMetaObject.cs b/src/System.Management.Automation/engine/ComInterop/ComFallbackMetaObject.cs index 4bdc0acd0..44fec0fdc 100644 --- a/src/System.Management.Automation/engine/ComInterop/ComFallbackMetaObject.cs +++ b/src/System.Management.Automation/engine/ComInterop/ComFallbackMetaObject.cs @@ -11,7 +11,6 @@ using Microsoft.Scripting.Ast; #endif using System.Dynamic; -using System.Diagnostics; //using Microsoft.Scripting.Utils; diff --git a/src/System.Management.Automation/engine/ComInterop/ComInterop.cs b/src/System.Management.Automation/engine/ComInterop/ComInterop.cs index 452cba824..aa5512581 100644 --- a/src/System.Management.Automation/engine/ComInterop/ComInterop.cs +++ b/src/System.Management.Automation/engine/ComInterop/ComInterop.cs @@ -4,7 +4,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. #if !SILVERLIGHT // ComObject -using System; using System.Runtime.InteropServices; using ComTypes = System.Runtime.InteropServices.ComTypes; diff --git a/src/System.Management.Automation/engine/ComInterop/ComInvokeAction.cs b/src/System.Management.Automation/engine/ComInterop/ComInvokeAction.cs index b55d93324..02288ec8b 100644 --- a/src/System.Management.Automation/engine/ComInterop/ComInvokeAction.cs +++ b/src/System.Management.Automation/engine/ComInterop/ComInvokeAction.cs @@ -9,14 +9,10 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Dynamic; using System.Collections.ObjectModel; using System.Diagnostics; using System.Runtime.CompilerServices; -using System.Management.Automation; -using System.Management.Automation.Language; namespace System.Management.Automation.ComInterop { diff --git a/src/System.Management.Automation/engine/ComInterop/ComInvokeBinder.cs b/src/System.Management.Automation/engine/ComInterop/ComInvokeBinder.cs index e42ea3b7e..1f97d2e1b 100644 --- a/src/System.Management.Automation/engine/ComInterop/ComInvokeBinder.cs +++ b/src/System.Management.Automation/engine/ComInterop/ComInvokeBinder.cs @@ -8,15 +8,11 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.InteropServices; using System.Dynamic; using ComTypes = System.Runtime.InteropServices.ComTypes; -using System.Linq; -using System.Management.Automation.Language; namespace System.Management.Automation.ComInterop { diff --git a/src/System.Management.Automation/engine/ComInterop/ComMetaObject.cs b/src/System.Management.Automation/engine/ComInterop/ComMetaObject.cs index d2fbc3273..79c7a55bb 100644 --- a/src/System.Management.Automation/engine/ComInterop/ComMetaObject.cs +++ b/src/System.Management.Automation/engine/ComInterop/ComMetaObject.cs @@ -8,10 +8,7 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Dynamic; -using System.Collections.Generic; //using Microsoft.Scripting.Utils; diff --git a/src/System.Management.Automation/engine/ComInterop/ComMethodDesc.cs b/src/System.Management.Automation/engine/ComInterop/ComMethodDesc.cs index e297a72e5..259f9025d 100644 --- a/src/System.Management.Automation/engine/ComInterop/ComMethodDesc.cs +++ b/src/System.Management.Automation/engine/ComInterop/ComMethodDesc.cs @@ -4,13 +4,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. #if !SILVERLIGHT // ComObject -using System; using System.Diagnostics; using System.Runtime.InteropServices.ComTypes; -using System.Text; -using System.Globalization; -using Marshal = System.Runtime.InteropServices.Marshal; -using VarEnum = System.Runtime.InteropServices.VarEnum; namespace System.Management.Automation.ComInterop { diff --git a/src/System.Management.Automation/engine/ComInterop/ComObject.cs b/src/System.Management.Automation/engine/ComInterop/ComObject.cs index 6b77da703..18dfc3322 100644 --- a/src/System.Management.Automation/engine/ComInterop/ComObject.cs +++ b/src/System.Management.Automation/engine/ComInterop/ComObject.cs @@ -8,14 +8,10 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; using System.Runtime.InteropServices; -using System.Security; -using System.Security.Permissions; using System.Dynamic; namespace System.Management.Automation.ComInterop diff --git a/src/System.Management.Automation/engine/ComInterop/ComParamDesc.cs b/src/System.Management.Automation/engine/ComInterop/ComParamDesc.cs index 799de11e1..afd56740c 100644 --- a/src/System.Management.Automation/engine/ComInterop/ComParamDesc.cs +++ b/src/System.Management.Automation/engine/ComInterop/ComParamDesc.cs @@ -4,7 +4,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. #if !SILVERLIGHT // ComObject -using System; using System.Runtime.InteropServices.ComTypes; using System.Text; using Marshal = System.Runtime.InteropServices.Marshal; diff --git a/src/System.Management.Automation/engine/ComInterop/ComRuntimeHelpers.cs b/src/System.Management.Automation/engine/ComInterop/ComRuntimeHelpers.cs index 3269d6875..0673afc28 100644 --- a/src/System.Management.Automation/engine/ComInterop/ComRuntimeHelpers.cs +++ b/src/System.Management.Automation/engine/ComInterop/ComRuntimeHelpers.cs @@ -4,7 +4,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. #if !SILVERLIGHT // ComObject -using System; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Reflection; diff --git a/src/System.Management.Automation/engine/ComInterop/ComTypeClassDesc.cs b/src/System.Management.Automation/engine/ComInterop/ComTypeClassDesc.cs index fc4a5daf6..36c8c0132 100644 --- a/src/System.Management.Automation/engine/ComInterop/ComTypeClassDesc.cs +++ b/src/System.Management.Automation/engine/ComInterop/ComTypeClassDesc.cs @@ -8,8 +8,6 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Collections.Generic; using System.Dynamic; using ComTypes = System.Runtime.InteropServices.ComTypes; diff --git a/src/System.Management.Automation/engine/ComInterop/ComTypeDesc.cs b/src/System.Management.Automation/engine/ComInterop/ComTypeDesc.cs index 7e1abfa0b..a3248abc6 100644 --- a/src/System.Management.Automation/engine/ComInterop/ComTypeDesc.cs +++ b/src/System.Management.Automation/engine/ComInterop/ComTypeDesc.cs @@ -4,7 +4,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. #if !SILVERLIGHT // ComObject -using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices.ComTypes; diff --git a/src/System.Management.Automation/engine/ComInterop/ComTypeEnumDesc.cs b/src/System.Management.Automation/engine/ComInterop/ComTypeEnumDesc.cs index e3e1b88c1..79a518ef1 100644 --- a/src/System.Management.Automation/engine/ComInterop/ComTypeEnumDesc.cs +++ b/src/System.Management.Automation/engine/ComInterop/ComTypeEnumDesc.cs @@ -9,8 +9,6 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Runtime.InteropServices; using System.Dynamic; using System.Globalization; diff --git a/src/System.Management.Automation/engine/ComInterop/ComTypeLibDesc.cs b/src/System.Management.Automation/engine/ComInterop/ComTypeLibDesc.cs index 36881a615..c11adda0c 100644 --- a/src/System.Management.Automation/engine/ComInterop/ComTypeLibDesc.cs +++ b/src/System.Management.Automation/engine/ComInterop/ComTypeLibDesc.cs @@ -8,8 +8,6 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Dynamic; diff --git a/src/System.Management.Automation/engine/ComInterop/ComTypeLibInfo.cs b/src/System.Management.Automation/engine/ComInterop/ComTypeLibInfo.cs index 7018912f2..f95c4c06d 100644 --- a/src/System.Management.Automation/engine/ComInterop/ComTypeLibInfo.cs +++ b/src/System.Management.Automation/engine/ComInterop/ComTypeLibInfo.cs @@ -9,8 +9,6 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Dynamic; namespace System.Management.Automation.ComInterop diff --git a/src/System.Management.Automation/engine/ComInterop/ConversionArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/ConversionArgBuilder.cs index 730558533..1ac97d3df 100644 --- a/src/System.Management.Automation/engine/ComInterop/ConversionArgBuilder.cs +++ b/src/System.Management.Automation/engine/ComInterop/ConversionArgBuilder.cs @@ -8,10 +8,6 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; //using Microsoft.Scripting.Utils; using System.Management.Automation.Interpreter; diff --git a/src/System.Management.Automation/engine/ComInterop/ConvertArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/ConvertArgBuilder.cs index 6dc2f792a..ba80b0abc 100644 --- a/src/System.Management.Automation/engine/ComInterop/ConvertArgBuilder.cs +++ b/src/System.Management.Automation/engine/ComInterop/ConvertArgBuilder.cs @@ -10,8 +10,6 @@ using System.Linq.Expressions; using Microsoft.Scripting.Ast; #endif -using System; - namespace System.Management.Automation.ComInterop { internal class ConvertArgBuilder : SimpleArgBuilder diff --git a/src/System.Management.Automation/engine/ComInterop/ConvertibleArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/ConvertibleArgBuilder.cs index 18526c863..5a74242f9 100644 --- a/src/System.Management.Automation/engine/ComInterop/ConvertibleArgBuilder.cs +++ b/src/System.Management.Automation/engine/ComInterop/ConvertibleArgBuilder.cs @@ -9,9 +9,6 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; -using System.Globalization; //using Microsoft.Scripting.Utils; using System.Management.Automation.Interpreter; diff --git a/src/System.Management.Automation/engine/ComInterop/CurrencyArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/CurrencyArgBuilder.cs index ad09f14f0..7706046fb 100644 --- a/src/System.Management.Automation/engine/ComInterop/CurrencyArgBuilder.cs +++ b/src/System.Management.Automation/engine/ComInterop/CurrencyArgBuilder.cs @@ -8,8 +8,6 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Diagnostics; using System.Runtime.InteropServices; diff --git a/src/System.Management.Automation/engine/ComInterop/DateTimeArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/DateTimeArgBuilder.cs index b85d9658c..d9b6ba463 100644 --- a/src/System.Management.Automation/engine/ComInterop/DateTimeArgBuilder.cs +++ b/src/System.Management.Automation/engine/ComInterop/DateTimeArgBuilder.cs @@ -8,12 +8,7 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; namespace System.Management.Automation.ComInterop { diff --git a/src/System.Management.Automation/engine/ComInterop/DispCallable.cs b/src/System.Management.Automation/engine/ComInterop/DispCallable.cs index ff5f7420a..a68cf6845 100644 --- a/src/System.Management.Automation/engine/ComInterop/DispCallable.cs +++ b/src/System.Management.Automation/engine/ComInterop/DispCallable.cs @@ -8,8 +8,6 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Dynamic; using System.Globalization; diff --git a/src/System.Management.Automation/engine/ComInterop/DispCallableMetaObject.cs b/src/System.Management.Automation/engine/ComInterop/DispCallableMetaObject.cs index 85cbfbf77..9942a224c 100644 --- a/src/System.Management.Automation/engine/ComInterop/DispCallableMetaObject.cs +++ b/src/System.Management.Automation/engine/ComInterop/DispCallableMetaObject.cs @@ -9,12 +9,8 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Linq; using System.Dynamic; -using System.Security; -using System.Security.Permissions; using System.Collections.Generic; using System.Management.Automation.Language; diff --git a/src/System.Management.Automation/engine/ComInterop/DispatchArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/DispatchArgBuilder.cs index dcedeb6a3..69e304def 100644 --- a/src/System.Management.Automation/engine/ComInterop/DispatchArgBuilder.cs +++ b/src/System.Management.Automation/engine/ComInterop/DispatchArgBuilder.cs @@ -8,11 +8,7 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; -using System.Collections.Generic; using System.Runtime.InteropServices; -using System.Diagnostics; namespace System.Management.Automation.ComInterop { diff --git a/src/System.Management.Automation/engine/ComInterop/ErrorArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/ErrorArgBuilder.cs index 38aa68fc2..d50c1f624 100644 --- a/src/System.Management.Automation/engine/ComInterop/ErrorArgBuilder.cs +++ b/src/System.Management.Automation/engine/ComInterop/ErrorArgBuilder.cs @@ -9,9 +9,6 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; -using System.Collections.Generic; using System.Runtime.InteropServices; using System.Diagnostics; diff --git a/src/System.Management.Automation/engine/ComInterop/Errors.cs b/src/System.Management.Automation/engine/ComInterop/Errors.cs index 43a980187..6e774e384 100644 --- a/src/System.Management.Automation/engine/ComInterop/Errors.cs +++ b/src/System.Management.Automation/engine/ComInterop/Errors.cs @@ -2,10 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Management.Automation; -using System.Management.Automation.Language; - namespace System.Management.Automation.ComInterop { #region Generated Com Exception Factory diff --git a/src/System.Management.Automation/engine/ComInterop/ExcepInfo.cs b/src/System.Management.Automation/engine/ComInterop/ExcepInfo.cs index fea45856c..e529935a3 100644 --- a/src/System.Management.Automation/engine/ComInterop/ExcepInfo.cs +++ b/src/System.Management.Automation/engine/ComInterop/ExcepInfo.cs @@ -4,11 +4,9 @@ Copyright (c) Microsoft Corporation. All rights reserved. #if !SILVERLIGHT // ComObject -using System; using System.Diagnostics; using System.Reflection; using System.Runtime.InteropServices; -using System.Security; using ComTypes = System.Runtime.InteropServices.ComTypes; namespace System.Management.Automation.ComInterop diff --git a/src/System.Management.Automation/engine/ComInterop/Helpers.cs b/src/System.Management.Automation/engine/ComInterop/Helpers.cs index db548da6d..36467c914 100644 --- a/src/System.Management.Automation/engine/ComInterop/Helpers.cs +++ b/src/System.Management.Automation/engine/ComInterop/Helpers.cs @@ -8,8 +8,6 @@ using System.Linq.Expressions; using Microsoft.Scripting.Ast; #endif -using System; - namespace System.Management.Automation.ComInterop { // Miscellaneous helpers that don't belong anywhere else diff --git a/src/System.Management.Automation/engine/ComInterop/IDispatchComObject.cs b/src/System.Management.Automation/engine/ComInterop/IDispatchComObject.cs index 89ef7daf3..23c9bd242 100644 --- a/src/System.Management.Automation/engine/ComInterop/IDispatchComObject.cs +++ b/src/System.Management.Automation/engine/ComInterop/IDispatchComObject.cs @@ -8,16 +8,12 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Runtime.InteropServices; -using System.Security; -using System.Security.Permissions; using ComTypes = System.Runtime.InteropServices.ComTypes; using System.Dynamic; diff --git a/src/System.Management.Automation/engine/ComInterop/IDispatchMetaObject.cs b/src/System.Management.Automation/engine/ComInterop/IDispatchMetaObject.cs index ade08a232..59b3259bb 100644 --- a/src/System.Management.Automation/engine/ComInterop/IDispatchMetaObject.cs +++ b/src/System.Management.Automation/engine/ComInterop/IDispatchMetaObject.cs @@ -8,11 +8,8 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Linq; using System.Collections.Generic; -using System.Diagnostics; using System.Dynamic; using System.Runtime.InteropServices.ComTypes; using System.Management.Automation.Language; diff --git a/src/System.Management.Automation/engine/ComInterop/IPseudoComObject.cs b/src/System.Management.Automation/engine/ComInterop/IPseudoComObject.cs index 4a7c4cdf8..9fdfb252b 100644 --- a/src/System.Management.Automation/engine/ComInterop/IPseudoComObject.cs +++ b/src/System.Management.Automation/engine/ComInterop/IPseudoComObject.cs @@ -7,8 +7,6 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Dynamic; namespace System.Management.Automation.ComInterop diff --git a/src/System.Management.Automation/engine/ComInterop/NullArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/NullArgBuilder.cs index a4891ff24..b4598a32d 100644 --- a/src/System.Management.Automation/engine/ComInterop/NullArgBuilder.cs +++ b/src/System.Management.Automation/engine/ComInterop/NullArgBuilder.cs @@ -9,9 +9,6 @@ using System.Linq.Expressions; using Microsoft.Scripting.Ast; #endif -using System; -using System.Diagnostics; - namespace System.Management.Automation.ComInterop { /// diff --git a/src/System.Management.Automation/engine/ComInterop/SimpleArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/SimpleArgBuilder.cs index 7cddf3a84..33536c72c 100644 --- a/src/System.Management.Automation/engine/ComInterop/SimpleArgBuilder.cs +++ b/src/System.Management.Automation/engine/ComInterop/SimpleArgBuilder.cs @@ -8,8 +8,6 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Diagnostics; namespace System.Management.Automation.ComInterop diff --git a/src/System.Management.Automation/engine/ComInterop/SplatCallSite.cs b/src/System.Management.Automation/engine/ComInterop/SplatCallSite.cs index 3a62eb7b5..849082848 100644 --- a/src/System.Management.Automation/engine/ComInterop/SplatCallSite.cs +++ b/src/System.Management.Automation/engine/ComInterop/SplatCallSite.cs @@ -3,12 +3,9 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ #if !CLR2 -using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Diagnostics; using System.Runtime.CompilerServices; //using Microsoft.Scripting.Utils; diff --git a/src/System.Management.Automation/engine/ComInterop/StringArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/StringArgBuilder.cs index 41d7a7353..5fd848601 100644 --- a/src/System.Management.Automation/engine/ComInterop/StringArgBuilder.cs +++ b/src/System.Management.Automation/engine/ComInterop/StringArgBuilder.cs @@ -8,9 +8,6 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; -using System.Collections.Generic; using System.Runtime.InteropServices; using System.Diagnostics; diff --git a/src/System.Management.Automation/engine/ComInterop/TypeEnumMetaObject.cs b/src/System.Management.Automation/engine/ComInterop/TypeEnumMetaObject.cs index d5bf3f510..cc22f40b3 100644 --- a/src/System.Management.Automation/engine/ComInterop/TypeEnumMetaObject.cs +++ b/src/System.Management.Automation/engine/ComInterop/TypeEnumMetaObject.cs @@ -8,8 +8,6 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Collections.Generic; using System.Dynamic; //using Microsoft.Scripting.Runtime; diff --git a/src/System.Management.Automation/engine/ComInterop/TypeUtils.cs b/src/System.Management.Automation/engine/ComInterop/TypeUtils.cs index a86bfe33d..0401e241b 100644 --- a/src/System.Management.Automation/engine/ComInterop/TypeUtils.cs +++ b/src/System.Management.Automation/engine/ComInterop/TypeUtils.cs @@ -3,14 +3,9 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ #if !CLR2 -using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Reflection; namespace System.Management.Automation.ComInterop diff --git a/src/System.Management.Automation/engine/ComInterop/UnknownArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/UnknownArgBuilder.cs index 93cd81858..a603e9328 100644 --- a/src/System.Management.Automation/engine/ComInterop/UnknownArgBuilder.cs +++ b/src/System.Management.Automation/engine/ComInterop/UnknownArgBuilder.cs @@ -9,11 +9,7 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; -using System.Collections.Generic; using System.Runtime.InteropServices; -using System.Diagnostics; namespace System.Management.Automation.ComInterop { diff --git a/src/System.Management.Automation/engine/ComInterop/VarEnumSelector.cs b/src/System.Management.Automation/engine/ComInterop/VarEnumSelector.cs index a9f7046a3..9f03dbb6e 100644 --- a/src/System.Management.Automation/engine/ComInterop/VarEnumSelector.cs +++ b/src/System.Management.Automation/engine/ComInterop/VarEnumSelector.cs @@ -4,12 +4,10 @@ Copyright (c) Microsoft Corporation. All rights reserved. #if !SILVERLIGHT // ComObject -using System; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; using System.Runtime.InteropServices; -using System.Management.Automation.ComInterop; namespace System.Management.Automation.ComInterop { diff --git a/src/System.Management.Automation/engine/ComInterop/Variant.cs b/src/System.Management.Automation/engine/ComInterop/Variant.cs index 7f20f090e..2062d8f26 100644 --- a/src/System.Management.Automation/engine/ComInterop/Variant.cs +++ b/src/System.Management.Automation/engine/ComInterop/Variant.cs @@ -4,17 +4,12 @@ Copyright (c) Microsoft Corporation. All rights reserved. #if !SILVERLIGHT // ComObject -using System; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Runtime.InteropServices; -using System.Security; -using System.Security.Permissions; //using Microsoft.Scripting.Utils; -using System.Reflection; //using Microsoft.Scripting.Generation; -using System.Reflection.Emit; using Assert = System.Management.Automation.Interpreter.Assert; namespace System.Management.Automation.ComInterop diff --git a/src/System.Management.Automation/engine/ComInterop/VariantArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/VariantArgBuilder.cs index e7a789685..f8aaccc42 100644 --- a/src/System.Management.Automation/engine/ComInterop/VariantArgBuilder.cs +++ b/src/System.Management.Automation/engine/ComInterop/VariantArgBuilder.cs @@ -8,11 +8,7 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; -using System.Collections.Generic; using System.Runtime.InteropServices; -using System.Diagnostics; using System.Reflection; namespace System.Management.Automation.ComInterop diff --git a/src/System.Management.Automation/engine/ComInterop/VariantArray.cs b/src/System.Management.Automation/engine/ComInterop/VariantArray.cs index 6b4ff5e20..4bf2b6b87 100644 --- a/src/System.Management.Automation/engine/ComInterop/VariantArray.cs +++ b/src/System.Management.Automation/engine/ComInterop/VariantArray.cs @@ -8,8 +8,6 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; diff --git a/src/System.Management.Automation/engine/ComInterop/VariantBuilder.cs b/src/System.Management.Automation/engine/ComInterop/VariantBuilder.cs index b3828ca89..4aad6d82c 100644 --- a/src/System.Management.Automation/engine/ComInterop/VariantBuilder.cs +++ b/src/System.Management.Automation/engine/ComInterop/VariantBuilder.cs @@ -9,8 +9,6 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Diagnostics; using System.Runtime.InteropServices; diff --git a/src/System.Management.Automation/engine/CommandBase.cs b/src/System.Management.Automation/engine/CommandBase.cs index b8080df77..a6e450dc7 100644 --- a/src/System.Management.Automation/engine/CommandBase.cs +++ b/src/System.Management.Automation/engine/CommandBase.cs @@ -2,19 +2,11 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; using System.Collections.ObjectModel; -using System.Globalization; -using System.Management.Automation; using System.Management.Automation.Language; -using System.Reflection; -using System.Text; using System.Diagnostics; -using System.Resources; using System.Management.Automation.Host; using System.Management.Automation.Internal.Host; -using System.Threading; using System.Management.Automation.Internal; using Dbg = System.Management.Automation.Diagnostics; using System.Management.Automation.Runspaces; diff --git a/src/System.Management.Automation/engine/CommandCompletion/CompletionExecutionHelper.cs b/src/System.Management.Automation/engine/CommandCompletion/CompletionExecutionHelper.cs index 2e688af22..f8a01b82e 100644 --- a/src/System.Management.Automation/engine/CommandCompletion/CompletionExecutionHelper.cs +++ b/src/System.Management.Automation/engine/CommandCompletion/CompletionExecutionHelper.cs @@ -9,7 +9,6 @@ namespace System.Management.Automation using System.Collections.ObjectModel; using System.Collections.Generic; using System.Management.Automation.Runspaces; - using System.Management.Automation.Remoting; using System.Collections; /// diff --git a/src/System.Management.Automation/engine/CommandCompletion/CompletionResult.cs b/src/System.Management.Automation/engine/CommandCompletion/CompletionResult.cs index 0cf0892c2..a6c098bee 100644 --- a/src/System.Management.Automation/engine/CommandCompletion/CompletionResult.cs +++ b/src/System.Management.Automation/engine/CommandCompletion/CompletionResult.cs @@ -9,8 +9,6 @@ namespace System.Management.Automation { using System; - using Microsoft.PowerShell.Commands; - using System.Management.Automation; /// /// Possible types of CompletionResults diff --git a/src/System.Management.Automation/engine/CommandCompletion/ExtensibleCompletion.cs b/src/System.Management.Automation/engine/CommandCompletion/ExtensibleCompletion.cs index 56219ba0f..ca201d716 100644 --- a/src/System.Management.Automation/engine/CommandCompletion/ExtensibleCompletion.cs +++ b/src/System.Management.Automation/engine/CommandCompletion/ExtensibleCompletion.cs @@ -6,10 +6,13 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using System.Reflection; using System.Linq; using System.Management.Automation.Language; +#if CORECLR +using System.Reflection; +#endif + namespace System.Management.Automation { /// diff --git a/src/System.Management.Automation/engine/CommandFactory.cs b/src/System.Management.Automation/engine/CommandFactory.cs index b3f4f0684..7481d2f60 100644 --- a/src/System.Management.Automation/engine/CommandFactory.cs +++ b/src/System.Management.Automation/engine/CommandFactory.cs @@ -2,10 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Text.RegularExpressions; -using System.Management.Automation; - namespace System.Management.Automation { /// diff --git a/src/System.Management.Automation/engine/CommandInfo.cs b/src/System.Management.Automation/engine/CommandInfo.cs index f76a7a682..28e547468 100644 --- a/src/System.Management.Automation/engine/CommandInfo.cs +++ b/src/System.Management.Automation/engine/CommandInfo.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; diff --git a/src/System.Management.Automation/engine/CommandParameter.cs b/src/System.Management.Automation/engine/CommandParameter.cs index 90d311ca2..dc7d24224 100644 --- a/src/System.Management.Automation/engine/CommandParameter.cs +++ b/src/System.Management.Automation/engine/CommandParameter.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Diagnostics; using System.Management.Automation.Language; diff --git a/src/System.Management.Automation/engine/CommandProcessor.cs b/src/System.Management.Automation/engine/CommandProcessor.cs index 896459acc..abb351681 100644 --- a/src/System.Management.Automation/engine/CommandProcessor.cs +++ b/src/System.Management.Automation/engine/CommandProcessor.cs @@ -2,19 +2,19 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections; using System.Collections.Concurrent; -using System.Collections.Generic; using System.Linq.Expressions; -using System.Reflection; using System.Collections.ObjectModel; using System.Diagnostics; using System.Management.Automation.Internal; -using System.Management.Automation.Language; using Microsoft.PowerShell.Commands; using Dbg = System.Management.Automation.Diagnostics; +#if CORECLR +using System.Reflection; +#endif + namespace System.Management.Automation { /// @@ -23,7 +23,7 @@ namespace System.Management.Automation /// internal class CommandProcessor : CommandProcessorBase { - #region ctor +#region ctor static CommandProcessor() { @@ -92,9 +92,9 @@ namespace System.Management.Automation // CommandProcessor - #endregion ctor +#endregion ctor - #region internal members +#region internal members /// /// Returns a CmdletParameterBinderController for the specified command /// @@ -380,9 +380,9 @@ namespace System.Management.Automation } } - #endregion public_methods +#endregion public_methods - #region helper_methods +#region helper_methods /// /// Tells whether it is the first call to Read @@ -837,7 +837,7 @@ namespace System.Management.Automation return base.IsHelpRequested(out helpTarget, out helpCategory); } - #endregion helper_methods +#endregion helper_methods } } diff --git a/src/System.Management.Automation/engine/CommandProcessorBase.cs b/src/System.Management.Automation/engine/CommandProcessorBase.cs index 3f2fc766f..9365bcd58 100644 --- a/src/System.Management.Automation/engine/CommandProcessorBase.cs +++ b/src/System.Management.Automation/engine/CommandProcessorBase.cs @@ -2,12 +2,9 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections; using System.Management.Automation.Language; -using System.Text; using System.Collections.ObjectModel; -using System.Management.Automation; using System.Management.Automation.Internal; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/CommonCommandParameters.cs b/src/System.Management.Automation/engine/CommonCommandParameters.cs index a841c11c1..8119ae4fc 100644 --- a/src/System.Management.Automation/engine/CommonCommandParameters.cs +++ b/src/System.Management.Automation/engine/CommonCommandParameters.cs @@ -2,9 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections; -using System.Management.Automation; using System.Management.Automation.Remoting; using System.Management.Automation.Runspaces; diff --git a/src/System.Management.Automation/engine/CompiledCommandParameter.cs b/src/System.Management.Automation/engine/CompiledCommandParameter.cs index 1f5f0e416..7fd48e6fc 100644 --- a/src/System.Management.Automation/engine/CompiledCommandParameter.cs +++ b/src/System.Management.Automation/engine/CompiledCommandParameter.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; diff --git a/src/System.Management.Automation/engine/ConfigurationInfo.cs b/src/System.Management.Automation/engine/ConfigurationInfo.cs index 98c2ff7e7..49b83c923 100644 --- a/src/System.Management.Automation/engine/ConfigurationInfo.cs +++ b/src/System.Management.Automation/engine/ConfigurationInfo.cs @@ -2,11 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Management.Automation; -using System.Text; - - namespace System.Management.Automation { /// diff --git a/src/System.Management.Automation/engine/ContentCmdletProviderInterfaces.cs b/src/System.Management.Automation/engine/ContentCmdletProviderInterfaces.cs index e84462f0a..a98c515de 100644 --- a/src/System.Management.Automation/engine/ContentCmdletProviderInterfaces.cs +++ b/src/System.Management.Automation/engine/ContentCmdletProviderInterfaces.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.ObjectModel; using System.Management.Automation.Provider; using Dbg = System.Management.Automation; diff --git a/src/System.Management.Automation/engine/Credential.cs b/src/System.Management.Automation/engine/Credential.cs index 5d60968c0..93c3c9c46 100644 --- a/src/System.Management.Automation/engine/Credential.cs +++ b/src/System.Management.Automation/engine/Credential.cs @@ -9,13 +9,13 @@ using System.Net; using System.Security; using SafeString = System.String; using System.Runtime.Serialization; -using System.Runtime.InteropServices; using System.Security.Cryptography; using Microsoft.PowerShell; #if CORECLR // Use stubs for ISerializable related types using Microsoft.PowerShell.CoreClr.Stubs; +using System.Runtime.InteropServices; #endif // FxCop suppressions for resource strings: diff --git a/src/System.Management.Automation/engine/CultureVariable.cs b/src/System.Management.Automation/engine/CultureVariable.cs index 761838057..b9d6deca7 100644 --- a/src/System.Management.Automation/engine/CultureVariable.cs +++ b/src/System.Management.Automation/engine/CultureVariable.cs @@ -2,9 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Management.Automation.Runspaces; - namespace System.Management.Automation { /// diff --git a/src/System.Management.Automation/engine/DataStoreAdapter.cs b/src/System.Management.Automation/engine/DataStoreAdapter.cs index 6ad0a6c85..0a74f75b3 100644 --- a/src/System.Management.Automation/engine/DataStoreAdapter.cs +++ b/src/System.Management.Automation/engine/DataStoreAdapter.cs @@ -4,8 +4,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. #pragma warning disable 1634, 1691 -using System; -using System.Runtime.InteropServices; using System.Threading; using Dbg = System.Management.Automation; diff --git a/src/System.Management.Automation/engine/DefaultCommandRuntime.cs b/src/System.Management.Automation/engine/DefaultCommandRuntime.cs index fe0712250..01b6fb8fa 100644 --- a/src/System.Management.Automation/engine/DefaultCommandRuntime.cs +++ b/src/System.Management.Automation/engine/DefaultCommandRuntime.cs @@ -4,10 +4,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections; using System.Collections.Generic; -using System.Management.Automation; using System.Management.Automation.Host; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/DriveInterfaces.cs b/src/System.Management.Automation/engine/DriveInterfaces.cs index 3fd0d3e3b..7226a9657 100644 --- a/src/System.Management.Automation/engine/DriveInterfaces.cs +++ b/src/System.Management.Automation/engine/DriveInterfaces.cs @@ -2,11 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; using System.Collections.ObjectModel; -using System.Globalization; -using System.Management.Automation; using Dbg = System.Management.Automation; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/DriveNames.cs b/src/System.Management.Automation/engine/DriveNames.cs index b25441387..4ff78c68c 100644 --- a/src/System.Management.Automation/engine/DriveNames.cs +++ b/src/System.Management.Automation/engine/DriveNames.cs @@ -2,8 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; - namespace System.Management.Automation { /// diff --git a/src/System.Management.Automation/engine/DscResourceInfo.cs b/src/System.Management.Automation/engine/DscResourceInfo.cs index c0adcae8b..d2c258efd 100644 --- a/src/System.Management.Automation/engine/DscResourceInfo.cs +++ b/src/System.Management.Automation/engine/DscResourceInfo.cs @@ -4,9 +4,6 @@ //----------------------------------------------------------------------- using System.Collections.Generic; -using System; -using System.Management.Automation; -using System.IO; using System.Collections.ObjectModel; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/DscResourceSearcher.cs b/src/System.Management.Automation/engine/DscResourceSearcher.cs index 822cec98d..2581676f6 100644 --- a/src/System.Management.Automation/engine/DscResourceSearcher.cs +++ b/src/System.Management.Automation/engine/DscResourceSearcher.cs @@ -5,8 +5,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.IO; -using System.Management.Automation.Runspaces; using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/EngineIntrinsics.cs b/src/System.Management.Automation/engine/EngineIntrinsics.cs index 9157896fe..b3b296f9f 100644 --- a/src/System.Management.Automation/engine/EngineIntrinsics.cs +++ b/src/System.Management.Automation/engine/EngineIntrinsics.cs @@ -2,8 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Management.Automation; using System.Management.Automation.Host; using Dbg = System.Management.Automation; diff --git a/src/System.Management.Automation/engine/EnumMinimumDisambiguation.cs b/src/System.Management.Automation/engine/EnumMinimumDisambiguation.cs index 21a0c8314..f03cf4b02 100644 --- a/src/System.Management.Automation/engine/EnumMinimumDisambiguation.cs +++ b/src/System.Management.Automation/engine/EnumMinimumDisambiguation.cs @@ -2,16 +2,9 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Text; -using System.Reflection; -using System.Resources; -using System.Diagnostics; using Dbg = System.Management.Automation; -using System.Globalization; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/ExecutionContext.cs b/src/System.Management.Automation/engine/ExecutionContext.cs index 0a0a2ffe3..e77968eb7 100644 --- a/src/System.Management.Automation/engine/ExecutionContext.cs +++ b/src/System.Management.Automation/engine/ExecutionContext.cs @@ -16,7 +16,6 @@ using System.Reflection; using System.Security; using System.Diagnostics.CodeAnalysis; using Microsoft.PowerShell.Commands.Internal.Format; -using System.Threading.Tasks; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/ExtendedTypeSystemException.cs b/src/System.Management.Automation/engine/ExtendedTypeSystemException.cs index 1873a53d3..d9068e198 100644 --- a/src/System.Management.Automation/engine/ExtendedTypeSystemException.cs +++ b/src/System.Management.Automation/engine/ExtendedTypeSystemException.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Runtime.Serialization; using System.Management.Automation.Internal; diff --git a/src/System.Management.Automation/engine/ExternalScriptInfo.cs b/src/System.Management.Automation/engine/ExternalScriptInfo.cs index 035b8bb44..a4f1bf110 100644 --- a/src/System.Management.Automation/engine/ExternalScriptInfo.cs +++ b/src/System.Management.Automation/engine/ExternalScriptInfo.cs @@ -6,7 +6,6 @@ using System.IO; using System.Text; using System.Collections.ObjectModel; using System.Management.Automation.Runspaces; -using System.Threading; using Microsoft.PowerShell.Commands; using System.Collections.Generic; using System.Management.Automation.Language; diff --git a/src/System.Management.Automation/engine/ExtraAdapter.cs b/src/System.Management.Automation/engine/ExtraAdapter.cs index 443cab499..e7debf502 100644 --- a/src/System.Management.Automation/engine/ExtraAdapter.cs +++ b/src/System.Management.Automation/engine/ExtraAdapter.cs @@ -9,7 +9,6 @@ using System.DirectoryServices; using System.Reflection; using System.Runtime.InteropServices; using System.Text; -using System.Xml; using Microsoft.PowerShell; #pragma warning disable 1634, 1691 // Stops compiler from warning about unknown warnings diff --git a/src/System.Management.Automation/engine/FilterInfo.cs b/src/System.Management.Automation/engine/FilterInfo.cs index 1c48fb18a..e7c160c9b 100644 --- a/src/System.Management.Automation/engine/FilterInfo.cs +++ b/src/System.Management.Automation/engine/FilterInfo.cs @@ -2,11 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Management.Automation; -using System.Text; - - namespace System.Management.Automation { /// diff --git a/src/System.Management.Automation/engine/FunctionInfo.cs b/src/System.Management.Automation/engine/FunctionInfo.cs index 74a056c91..ebba403e7 100644 --- a/src/System.Management.Automation/engine/FunctionInfo.cs +++ b/src/System.Management.Automation/engine/FunctionInfo.cs @@ -2,11 +2,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Text; using System.Management.Automation.Runspaces; -using System.Collections.Generic; -using System.Threading; using System.Collections.ObjectModel; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/ICommandRuntime.cs b/src/System.Management.Automation/engine/ICommandRuntime.cs index d2f3d696b..1a11d9765 100644 --- a/src/System.Management.Automation/engine/ICommandRuntime.cs +++ b/src/System.Management.Automation/engine/ICommandRuntime.cs @@ -2,8 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Management.Automation; using System.Management.Automation.Host; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/InitialSessionState.cs b/src/System.Management.Automation/engine/InitialSessionState.cs index b50306ef5..f6d5812c0 100644 --- a/src/System.Management.Automation/engine/InitialSessionState.cs +++ b/src/System.Management.Automation/engine/InitialSessionState.cs @@ -8,15 +8,12 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; using System.Diagnostics.Tracing; -using System.Dynamic; -using System.Globalization; using System.IO; using System.Linq; using System.Management.Automation.Internal; using System.Management.Automation.Provider; using System.Management.Automation.Language; using System.Reflection; -using System.Runtime.CompilerServices; using System.Threading; using Microsoft.PowerShell.Commands; using Debug = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/ItemCmdletProviderInterfaces.cs b/src/System.Management.Automation/engine/ItemCmdletProviderInterfaces.cs index 49cdc9e97..a4bd9905e 100644 --- a/src/System.Management.Automation/engine/ItemCmdletProviderInterfaces.cs +++ b/src/System.Management.Automation/engine/ItemCmdletProviderInterfaces.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.ObjectModel; using Dbg = System.Management.Automation; diff --git a/src/System.Management.Automation/engine/ManagementObjectAdapter.cs b/src/System.Management.Automation/engine/ManagementObjectAdapter.cs index f4f3d454c..29bd25625 100644 --- a/src/System.Management.Automation/engine/ManagementObjectAdapter.cs +++ b/src/System.Management.Automation/engine/ManagementObjectAdapter.cs @@ -2,14 +2,11 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System.Xml; -using System.Data; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text; using System.Collections.Specialized; -using System.Management; using System.Globalization; using System.ComponentModel; using System.Management.Automation.Internal; diff --git a/src/System.Management.Automation/engine/MergedCommandParameterMetadata.cs b/src/System.Management.Automation/engine/MergedCommandParameterMetadata.cs index 83fb9df1d..843d08267 100644 --- a/src/System.Management.Automation/engine/MergedCommandParameterMetadata.cs +++ b/src/System.Management.Automation/engine/MergedCommandParameterMetadata.cs @@ -5,8 +5,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System.Collections.Generic; using System.Collections.ObjectModel; using System.Globalization; -using System.Linq.Expressions; -using System.Reflection; using System.Text; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/Modules/GetModuleCommand.cs b/src/System.Management.Automation/engine/Modules/GetModuleCommand.cs index a62cf7475..bdbc9b57f 100644 --- a/src/System.Management.Automation/engine/Modules/GetModuleCommand.cs +++ b/src/System.Management.Automation/engine/Modules/GetModuleCommand.cs @@ -13,7 +13,6 @@ using System.Management.Automation.Language; using System.Management.Automation.Runspaces; using System.Diagnostics.CodeAnalysis; using System.Linq; -using System.Text.RegularExpressions; using System.Threading; using Microsoft.Management.Infrastructure; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/Modules/ImportModuleCommand.cs b/src/System.Management.Automation/engine/Modules/ImportModuleCommand.cs index 29d1ac982..837c6fb16 100644 --- a/src/System.Management.Automation/engine/Modules/ImportModuleCommand.cs +++ b/src/System.Management.Automation/engine/Modules/ImportModuleCommand.cs @@ -23,7 +23,6 @@ using System.Management.Automation.Language; using Parser = System.Management.Automation.Language.Parser; using ScriptBlock = System.Management.Automation.ScriptBlock; using Token = System.Management.Automation.Language.Token; -using System.Collections.ObjectModel; using Microsoft.PowerShell.Telemetry.Internal; #if CORECLR diff --git a/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs b/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs index 52dced20c..122306fb9 100644 --- a/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs +++ b/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs @@ -18,9 +18,7 @@ using System.Reflection; using System.Text; using System.Xml; using Microsoft.PowerShell.Cmdletization; -using Microsoft.Win32; using Dbg = System.Management.Automation.Diagnostics; -using System.Management.Automation.Language; #if CORECLR // Some APIs are missing from System.Environment. We use System.Management.Automation.Environment as a proxy type: diff --git a/src/System.Management.Automation/engine/Modules/ModuleIntrinsics.cs b/src/System.Management.Automation/engine/Modules/ModuleIntrinsics.cs index 3e39839ce..fcf209574 100644 --- a/src/System.Management.Automation/engine/Modules/ModuleIntrinsics.cs +++ b/src/System.Management.Automation/engine/Modules/ModuleIntrinsics.cs @@ -6,7 +6,6 @@ using System.Collections.Generic; using System.IO; using System.Management.Automation.Internal; using System.Management.Automation.Language; -using System.Management.Automation.Runspaces; using Microsoft.PowerShell.Commands; using System.Linq; using System.Threading; diff --git a/src/System.Management.Automation/engine/Modules/ScriptAnalysis.cs b/src/System.Management.Automation/engine/Modules/ScriptAnalysis.cs index b4afb1aba..8e9c3ef17 100644 --- a/src/System.Management.Automation/engine/Modules/ScriptAnalysis.cs +++ b/src/System.Management.Automation/engine/Modules/ScriptAnalysis.cs @@ -4,12 +4,10 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System.Collections; using System.Globalization; -using System.Collections.ObjectModel; using System.Collections.Generic; using System.IO; using System.Text; using System.Management.Automation.Language; -using System.Reflection; using System.Text.RegularExpressions; #if CORECLR diff --git a/src/System.Management.Automation/engine/Modules/TestModuleManifestCommand.cs b/src/System.Management.Automation/engine/Modules/TestModuleManifestCommand.cs index b8ca0d1d6..c6a378a9c 100644 --- a/src/System.Management.Automation/engine/Modules/TestModuleManifestCommand.cs +++ b/src/System.Management.Automation/engine/Modules/TestModuleManifestCommand.cs @@ -8,7 +8,6 @@ using System.IO; using System.Linq; using System.Management.Automation; using System.Management.Automation.Internal; -using System.Collections.Generic; using System.Collections; // diff --git a/src/System.Management.Automation/engine/MshObjectTypeDescriptor.cs b/src/System.Management.Automation/engine/MshObjectTypeDescriptor.cs index 5cd1002af..6cc84a1b7 100644 --- a/src/System.Management.Automation/engine/MshObjectTypeDescriptor.cs +++ b/src/System.Management.Automation/engine/MshObjectTypeDescriptor.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.ComponentModel; using System.Management.Automation.Runspaces; diff --git a/src/System.Management.Automation/engine/MshSecurityException.cs b/src/System.Management.Automation/engine/MshSecurityException.cs index 3bd887546..00d7fe5ec 100644 --- a/src/System.Management.Automation/engine/MshSecurityException.cs +++ b/src/System.Management.Automation/engine/MshSecurityException.cs @@ -2,8 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Reflection; using System.Runtime.Serialization; #if CORECLR diff --git a/src/System.Management.Automation/engine/MshSnapinQualifiedName.cs b/src/System.Management.Automation/engine/MshSnapinQualifiedName.cs index 8a65bbcde..fc7059382 100644 --- a/src/System.Management.Automation/engine/MshSnapinQualifiedName.cs +++ b/src/System.Management.Automation/engine/MshSnapinQualifiedName.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/NativeCommand.cs b/src/System.Management.Automation/engine/NativeCommand.cs index 18af40f3b..f2f1c22cb 100644 --- a/src/System.Management.Automation/engine/NativeCommand.cs +++ b/src/System.Management.Automation/engine/NativeCommand.cs @@ -2,9 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Management.Automation; -using System.Diagnostics; using System.Management.Automation.Internal; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/NativeCommandParameterBinder.cs b/src/System.Management.Automation/engine/NativeCommandParameterBinder.cs index e65202ef1..45a20e5b7 100644 --- a/src/System.Management.Automation/engine/NativeCommandParameterBinder.cs +++ b/src/System.Management.Automation/engine/NativeCommandParameterBinder.cs @@ -5,7 +5,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System.Collections; using System.Collections.ObjectModel; using System.Management.Automation.Internal; -using System.Runtime.InteropServices; using System.Text; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/NullString.cs b/src/System.Management.Automation/engine/NullString.cs index 001d5b8ae..75e38aec5 100644 --- a/src/System.Management.Automation/engine/NullString.cs +++ b/src/System.Management.Automation/engine/NullString.cs @@ -2,8 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; - namespace System.Management.Automation.Language { /// diff --git a/src/System.Management.Automation/engine/PSMI/PSNegotiationData.cs b/src/System.Management.Automation/engine/PSMI/PSNegotiationData.cs index 23899138e..5621ed7c5 100644 --- a/src/System.Management.Automation/engine/PSMI/PSNegotiationData.cs +++ b/src/System.Management.Automation/engine/PSMI/PSNegotiationData.cs @@ -1,5 +1,4 @@ -using System.Collections.Generic; -using System.Runtime.InteropServices; +using System.Runtime.InteropServices; using Microsoft.Management.Infrastructure; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/PSMI/PSPowerShellPipeline.cs b/src/System.Management.Automation/engine/PSMI/PSPowerShellPipeline.cs index 21b8a12f3..e6c17ef38 100644 --- a/src/System.Management.Automation/engine/PSMI/PSPowerShellPipeline.cs +++ b/src/System.Management.Automation/engine/PSMI/PSPowerShellPipeline.cs @@ -1,5 +1,4 @@ -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; +using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/PSMI/Serialization/InternalMISerializer.cs b/src/System.Management.Automation/engine/PSMI/Serialization/InternalMISerializer.cs index 96bed98d0..84ef0ff69 100644 --- a/src/System.Management.Automation/engine/PSMI/Serialization/InternalMISerializer.cs +++ b/src/System.Management.Automation/engine/PSMI/Serialization/InternalMISerializer.cs @@ -2,28 +2,15 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; using System.Globalization; -using System.IO; -using System.Linq; using System.Management.Automation.Internal; -using System.Management.Automation.Language; using System.Management.Automation.Runspaces; using System.Management.Automation.Tracing; -using System.Runtime.CompilerServices; -using System.Security; -using System.Text; -using System.Xml; using Microsoft.Management.Infrastructure; -using Microsoft.Management.Infrastructure.Serialization; -using Microsoft.PowerShell; using Dbg = System.Management.Automation.Diagnostics; -using System.Management.Automation.Remoting; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/PSMI/Serialization/KnownMITypes.cs b/src/System.Management.Automation/engine/PSMI/Serialization/KnownMITypes.cs index 7b7eb8ed4..3309a3423 100644 --- a/src/System.Management.Automation/engine/PSMI/Serialization/KnownMITypes.cs +++ b/src/System.Management.Automation/engine/PSMI/Serialization/KnownMITypes.cs @@ -2,27 +2,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.IO; -using System.Linq; -using System.Management.Automation.Internal; -using System.Management.Automation.Language; -using System.Management.Automation.Runspaces; -using System.Management.Automation.Tracing; -using System.Runtime.CompilerServices; -using System.Security; -using System.Text; -using System.Xml; -using Microsoft.Management.Infrastructure; -using Microsoft.Management.Infrastructure.Serialization; -using Microsoft.PowerShell; using Dbg = System.Management.Automation.Diagnostics; -using System.Management.Automation.Remoting; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/PSMI/Serialization/MISerializer.cs b/src/System.Management.Automation/engine/PSMI/Serialization/MISerializer.cs index 69d6bc35d..d0fc978cb 100644 --- a/src/System.Management.Automation/engine/PSMI/Serialization/MISerializer.cs +++ b/src/System.Management.Automation/engine/PSMI/Serialization/MISerializer.cs @@ -2,27 +2,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.IO; -using System.Linq; -using System.Management.Automation.Internal; -using System.Management.Automation.Language; -using System.Management.Automation.Runspaces; -using System.Management.Automation.Tracing; -using System.Runtime.CompilerServices; -using System.Security; -using System.Text; -using System.Xml; using Microsoft.Management.Infrastructure; -using Microsoft.Management.Infrastructure.Serialization; -using Microsoft.PowerShell; using Dbg = System.Management.Automation.Diagnostics; -using System.Management.Automation.Remoting; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/PSMI/Serialization/MITypeSerializationInfo.cs b/src/System.Management.Automation/engine/PSMI/Serialization/MITypeSerializationInfo.cs index aee4482cf..fc58506f3 100644 --- a/src/System.Management.Automation/engine/PSMI/Serialization/MITypeSerializationInfo.cs +++ b/src/System.Management.Automation/engine/PSMI/Serialization/MITypeSerializationInfo.cs @@ -2,27 +2,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.IO; -using System.Linq; -using System.Management.Automation.Internal; -using System.Management.Automation.Language; -using System.Management.Automation.Runspaces; -using System.Management.Automation.Tracing; -using System.Runtime.CompilerServices; -using System.Security; -using System.Text; -using System.Xml; using Microsoft.Management.Infrastructure; -using Microsoft.Management.Infrastructure.Serialization; -using Microsoft.PowerShell; using Dbg = System.Management.Automation.Diagnostics; -using System.Management.Automation.Remoting; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/PSMI/Serialization/PSMISerializer.cs b/src/System.Management.Automation/engine/PSMI/Serialization/PSMISerializer.cs index ee33dde77..e25b16cac 100644 --- a/src/System.Management.Automation/engine/PSMI/Serialization/PSMISerializer.cs +++ b/src/System.Management.Automation/engine/PSMI/Serialization/PSMISerializer.cs @@ -1,19 +1,5 @@ -using System.IO; -using System.Linq; -using System.Management.Automation.Internal; -using System.Management.Automation.Language; -using System.Management.Automation.Runspaces; -using System.Management.Automation.Tracing; -using System.Runtime.CompilerServices; -using System.Security; -using System.Text; -using System.Xml; -using Microsoft.Management.Infrastructure; -using Microsoft.Management.Infrastructure.Serialization; -using Microsoft.PowerShell; +using Microsoft.Management.Infrastructure; using Dbg = System.Management.Automation.Diagnostics; -using System.Management.Automation.Remoting; -using System.Collections.Generic; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/ParameterBinderController.cs b/src/System.Management.Automation/engine/ParameterBinderController.cs index 77b47296b..582d6320e 100644 --- a/src/System.Management.Automation/engine/ParameterBinderController.cs +++ b/src/System.Management.Automation/engine/ParameterBinderController.cs @@ -2,12 +2,10 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.Globalization; -using System.Management.Automation.Internal; using System.Management.Automation.Language; using System.Text; diff --git a/src/System.Management.Automation/engine/ParameterInfo.cs b/src/System.Management.Automation/engine/ParameterInfo.cs index 777194956..12d0a13d6 100644 --- a/src/System.Management.Automation/engine/ParameterInfo.cs +++ b/src/System.Management.Automation/engine/ParameterInfo.cs @@ -2,10 +2,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Management.Automation; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/ParameterSetInfo.cs b/src/System.Management.Automation/engine/ParameterSetInfo.cs index 3f7e45124..7b9f40174 100644 --- a/src/System.Management.Automation/engine/ParameterSetInfo.cs +++ b/src/System.Management.Automation/engine/ParameterSetInfo.cs @@ -2,11 +2,9 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Globalization; -using System.Management.Automation; using System.Linq; using System.Text.RegularExpressions; using Microsoft.PowerShell; diff --git a/src/System.Management.Automation/engine/ParameterSetPromptingData.cs b/src/System.Management.Automation/engine/ParameterSetPromptingData.cs index 09f56e901..e8b17d337 100644 --- a/src/System.Management.Automation/engine/ParameterSetPromptingData.cs +++ b/src/System.Management.Automation/engine/ParameterSetPromptingData.cs @@ -2,13 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System.Collections; using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Management.Automation; -using System.Management.Automation.Internal; -using System.Management.Automation.Host; -using System.Text; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/ParameterSetSpecificMetadata.cs b/src/System.Management.Automation/engine/ParameterSetSpecificMetadata.cs index 70d0d187f..6a1a8b667 100644 --- a/src/System.Management.Automation/engine/ParameterSetSpecificMetadata.cs +++ b/src/System.Management.Automation/engine/ParameterSetSpecificMetadata.cs @@ -2,10 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Management.Automation; - - namespace System.Management.Automation { internal class ParameterSetSpecificMetadata diff --git a/src/System.Management.Automation/engine/PathInterfaces.cs b/src/System.Management.Automation/engine/PathInterfaces.cs index 1ccde8e68..c41509649 100644 --- a/src/System.Management.Automation/engine/PathInterfaces.cs +++ b/src/System.Management.Automation/engine/PathInterfaces.cs @@ -2,11 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; using System.Collections.ObjectModel; -using System.Globalization; -using System.Management.Automation; using Dbg = System.Management.Automation; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/Pipe.cs b/src/System.Management.Automation/engine/Pipe.cs index 62ccda703..1e0a43676 100644 --- a/src/System.Management.Automation/engine/Pipe.cs +++ b/src/System.Management.Automation/engine/Pipe.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections; using System.Collections.Generic; using System.Management.Automation.Runspaces; diff --git a/src/System.Management.Automation/engine/PositionalCommandParameter.cs b/src/System.Management.Automation/engine/PositionalCommandParameter.cs index 584310f31..2bb905c73 100644 --- a/src/System.Management.Automation/engine/PositionalCommandParameter.cs +++ b/src/System.Management.Automation/engine/PositionalCommandParameter.cs @@ -2,12 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Globalization; -using System.Management.Automation; -using System.Management.Automation.Internal; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/ProgressRecord.cs b/src/System.Management.Automation/engine/ProgressRecord.cs index cade8aa55..027579468 100644 --- a/src/System.Management.Automation/engine/ProgressRecord.cs +++ b/src/System.Management.Automation/engine/ProgressRecord.cs @@ -2,8 +2,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using Dbg = System.Management.Automation.Diagnostics; using System.Runtime.Serialization; +using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/PropertyCmdletProviderInterfaces.cs b/src/System.Management.Automation/engine/PropertyCmdletProviderInterfaces.cs index 49f3cb894..fb1676567 100644 --- a/src/System.Management.Automation/engine/PropertyCmdletProviderInterfaces.cs +++ b/src/System.Management.Automation/engine/PropertyCmdletProviderInterfaces.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.ObjectModel; using Dbg = System.Management.Automation; diff --git a/src/System.Management.Automation/engine/ProviderInterfaces.cs b/src/System.Management.Automation/engine/ProviderInterfaces.cs index 965acac69..e0422e9b9 100644 --- a/src/System.Management.Automation/engine/ProviderInterfaces.cs +++ b/src/System.Management.Automation/engine/ProviderInterfaces.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Management.Automation.Provider; diff --git a/src/System.Management.Automation/engine/ProviderNames.cs b/src/System.Management.Automation/engine/ProviderNames.cs index fa17f783d..159e68db6 100644 --- a/src/System.Management.Automation/engine/ProviderNames.cs +++ b/src/System.Management.Automation/engine/ProviderNames.cs @@ -2,9 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; - - namespace System.Management.Automation { /// diff --git a/src/System.Management.Automation/engine/PseudoParameterBinder.cs b/src/System.Management.Automation/engine/PseudoParameterBinder.cs index c70dd3a5d..8c5c41077 100644 --- a/src/System.Management.Automation/engine/PseudoParameterBinder.cs +++ b/src/System.Management.Automation/engine/PseudoParameterBinder.cs @@ -2,11 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; -using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.Management.Automation; using System.Management.Automation.Internal; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/PseudoParameters.cs b/src/System.Management.Automation/engine/PseudoParameters.cs index 196874460..56f297d5f 100644 --- a/src/System.Management.Automation/engine/PseudoParameters.cs +++ b/src/System.Management.Automation/engine/PseudoParameters.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.Generic; using System.Collections.ObjectModel; diff --git a/src/System.Management.Automation/engine/QuestionMarkVariable.cs b/src/System.Management.Automation/engine/QuestionMarkVariable.cs index 6d0234ae0..9741c0851 100644 --- a/src/System.Management.Automation/engine/QuestionMarkVariable.cs +++ b/src/System.Management.Automation/engine/QuestionMarkVariable.cs @@ -3,11 +3,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ - - - -using System; - namespace System.Management.Automation { /// diff --git a/src/System.Management.Automation/engine/ReflectionParameterBinder.cs b/src/System.Management.Automation/engine/ReflectionParameterBinder.cs index 58ada8673..a33e70f05 100644 --- a/src/System.Management.Automation/engine/ReflectionParameterBinder.cs +++ b/src/System.Management.Automation/engine/ReflectionParameterBinder.cs @@ -2,10 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Linq; using System.Linq.Expressions; using System.Management.Automation.Internal; using System.Reflection; diff --git a/src/System.Management.Automation/engine/ScopedItemSearcher.cs b/src/System.Management.Automation/engine/ScopedItemSearcher.cs index a83385530..166d74e3c 100644 --- a/src/System.Management.Automation/engine/ScopedItemSearcher.cs +++ b/src/System.Management.Automation/engine/ScopedItemSearcher.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.Generic; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/ScriptCommand.cs b/src/System.Management.Automation/engine/ScriptCommand.cs index c1f2ab7a7..e5c1982dc 100644 --- a/src/System.Management.Automation/engine/ScriptCommand.cs +++ b/src/System.Management.Automation/engine/ScriptCommand.cs @@ -2,12 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; -using System.Management.Automation; using System.Management.Automation.Internal; -using System.Reflection; -using System.Text; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/ScriptCommandProcessor.cs b/src/System.Management.Automation/engine/ScriptCommandProcessor.cs index 7e0ef36f9..7d6527660 100644 --- a/src/System.Management.Automation/engine/ScriptCommandProcessor.cs +++ b/src/System.Management.Automation/engine/ScriptCommandProcessor.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; diff --git a/src/System.Management.Automation/engine/ScriptInfo.cs b/src/System.Management.Automation/engine/ScriptInfo.cs index afc221a13..0f9befe97 100644 --- a/src/System.Management.Automation/engine/ScriptInfo.cs +++ b/src/System.Management.Automation/engine/ScriptInfo.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Management.Automation.Runspaces; using System.Collections.ObjectModel; diff --git a/src/System.Management.Automation/engine/SecurityManagerBase.cs b/src/System.Management.Automation/engine/SecurityManagerBase.cs index cbdd0b03c..ebc5a7681 100644 --- a/src/System.Management.Automation/engine/SecurityManagerBase.cs +++ b/src/System.Management.Automation/engine/SecurityManagerBase.cs @@ -3,9 +3,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using Dbg = System.Management.Automation; -using System.Reflection; -using System.Collections; -using System.Security; using System.Management.Automation.Host; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/SessionStateAliasAPIs.cs b/src/System.Management.Automation/engine/SessionStateAliasAPIs.cs index 172c0f738..a68e5bbd0 100644 --- a/src/System.Management.Automation/engine/SessionStateAliasAPIs.cs +++ b/src/System.Management.Automation/engine/SessionStateAliasAPIs.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.Generic; using System.Management.Automation.Runspaces; using Dbg = System.Management.Automation; diff --git a/src/System.Management.Automation/engine/SessionStateCapacityVariable.cs b/src/System.Management.Automation/engine/SessionStateCapacityVariable.cs index 0b9fa267c..5efa7b9e5 100644 --- a/src/System.Management.Automation/engine/SessionStateCapacityVariable.cs +++ b/src/System.Management.Automation/engine/SessionStateCapacityVariable.cs @@ -2,9 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Diagnostics.CodeAnalysis; // for fxcop -using System.Management.Automation; using System.Globalization; using Dbg = System.Management.Automation; diff --git a/src/System.Management.Automation/engine/SessionStateCmdletAPIs.cs b/src/System.Management.Automation/engine/SessionStateCmdletAPIs.cs index d86ca15f3..fef9b35a6 100644 --- a/src/System.Management.Automation/engine/SessionStateCmdletAPIs.cs +++ b/src/System.Management.Automation/engine/SessionStateCmdletAPIs.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.Generic; using Dbg = System.Management.Automation; diff --git a/src/System.Management.Automation/engine/SessionStateContent.cs b/src/System.Management.Automation/engine/SessionStateContent.cs index 0d8061f2a..9da7a5b94 100644 --- a/src/System.Management.Automation/engine/SessionStateContent.cs +++ b/src/System.Management.Automation/engine/SessionStateContent.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.ObjectModel; using System.Management.Automation.Provider; using Dbg = System.Management.Automation; diff --git a/src/System.Management.Automation/engine/SessionStateDynamicProperty.cs b/src/System.Management.Automation/engine/SessionStateDynamicProperty.cs index 1f30789df..9ca09c858 100644 --- a/src/System.Management.Automation/engine/SessionStateDynamicProperty.cs +++ b/src/System.Management.Automation/engine/SessionStateDynamicProperty.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.ObjectModel; using System.Management.Automation.Provider; using Dbg = System.Management.Automation; diff --git a/src/System.Management.Automation/engine/SessionStateFunctionAPIs.cs b/src/System.Management.Automation/engine/SessionStateFunctionAPIs.cs index 5a700f461..20d7642ef 100644 --- a/src/System.Management.Automation/engine/SessionStateFunctionAPIs.cs +++ b/src/System.Management.Automation/engine/SessionStateFunctionAPIs.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections; using System.Collections.Generic; using System.Management.Automation.Language; diff --git a/src/System.Management.Automation/engine/SessionStateItem.cs b/src/System.Management.Automation/engine/SessionStateItem.cs index cc485d398..443eae515 100644 --- a/src/System.Management.Automation/engine/SessionStateItem.cs +++ b/src/System.Management.Automation/engine/SessionStateItem.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.ObjectModel; using System.Management.Automation.Provider; using Dbg = System.Management.Automation; diff --git a/src/System.Management.Automation/engine/SessionStateLocationAPIs.cs b/src/System.Management.Automation/engine/SessionStateLocationAPIs.cs index 2702dcb94..f0fbaf0f1 100644 --- a/src/System.Management.Automation/engine/SessionStateLocationAPIs.cs +++ b/src/System.Management.Automation/engine/SessionStateLocationAPIs.cs @@ -4,11 +4,9 @@ Copyright (c) Microsoft Corporation. All rights reserved. #pragma warning disable 1634, 1691 -using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Management.Automation.Provider; -using System.Threading; using Dbg = System.Management.Automation; diff --git a/src/System.Management.Automation/engine/SessionStateNavigation.cs b/src/System.Management.Automation/engine/SessionStateNavigation.cs index ccad7a913..2919b8556 100644 --- a/src/System.Management.Automation/engine/SessionStateNavigation.cs +++ b/src/System.Management.Automation/engine/SessionStateNavigation.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.ObjectModel; using System.Management.Automation.Provider; using Dbg = System.Management.Automation; diff --git a/src/System.Management.Automation/engine/SessionStateProperty.cs b/src/System.Management.Automation/engine/SessionStateProperty.cs index 499c52e79..8f0c3c5d3 100644 --- a/src/System.Management.Automation/engine/SessionStateProperty.cs +++ b/src/System.Management.Automation/engine/SessionStateProperty.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.ObjectModel; using System.Management.Automation.Provider; using Dbg = System.Management.Automation; diff --git a/src/System.Management.Automation/engine/SessionStateProviderAPIs.cs b/src/System.Management.Automation/engine/SessionStateProviderAPIs.cs index a7f0ea90e..5e9832d57 100644 --- a/src/System.Management.Automation/engine/SessionStateProviderAPIs.cs +++ b/src/System.Management.Automation/engine/SessionStateProviderAPIs.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Management.Automation.Provider; diff --git a/src/System.Management.Automation/engine/SessionStatePublic.cs b/src/System.Management.Automation/engine/SessionStatePublic.cs index ddd6b744d..50849bda2 100644 --- a/src/System.Management.Automation/engine/SessionStatePublic.cs +++ b/src/System.Management.Automation/engine/SessionStatePublic.cs @@ -2,13 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Globalization; -using System.Management.Automation; -using System.Management.Automation.Internal; using System.Management.Automation.Runspaces; using Dbg = System.Management.Automation; diff --git a/src/System.Management.Automation/engine/SessionStateScope.cs b/src/System.Management.Automation/engine/SessionStateScope.cs index 8a53f53db..d7b9f063d 100644 --- a/src/System.Management.Automation/engine/SessionStateScope.cs +++ b/src/System.Management.Automation/engine/SessionStateScope.cs @@ -2,12 +2,10 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Management.Automation.Internal; -using System.Management.Automation.Runspaces; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/SessionStateScopeAPIs.cs b/src/System.Management.Automation/engine/SessionStateScopeAPIs.cs index e32b554a8..979f10db5 100644 --- a/src/System.Management.Automation/engine/SessionStateScopeAPIs.cs +++ b/src/System.Management.Automation/engine/SessionStateScopeAPIs.cs @@ -2,9 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections.Generic; -using System.Threading; using Dbg = System.Management.Automation; #pragma warning disable 1634, 1691 // Stops compiler from warning about unknown warnings diff --git a/src/System.Management.Automation/engine/SessionStateScopeEnumerator.cs b/src/System.Management.Automation/engine/SessionStateScopeEnumerator.cs index afe4813f0..b5402bb95 100644 --- a/src/System.Management.Automation/engine/SessionStateScopeEnumerator.cs +++ b/src/System.Management.Automation/engine/SessionStateScopeEnumerator.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections; using System.Collections.Generic; diff --git a/src/System.Management.Automation/engine/SessionStateStrings.cs b/src/System.Management.Automation/engine/SessionStateStrings.cs index 6e800cb97..59f4136e5 100644 --- a/src/System.Management.Automation/engine/SessionStateStrings.cs +++ b/src/System.Management.Automation/engine/SessionStateStrings.cs @@ -2,12 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Management.Automation; -using System.Collections; -using System.IO; - - namespace System.Management.Automation { /// diff --git a/src/System.Management.Automation/engine/SessionStateUtils.cs b/src/System.Management.Automation/engine/SessionStateUtils.cs index 465a6775a..edbe709a0 100644 --- a/src/System.Management.Automation/engine/SessionStateUtils.cs +++ b/src/System.Management.Automation/engine/SessionStateUtils.cs @@ -2,12 +2,10 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; -using System.Management.Automation; using Microsoft.PowerShell.Commands; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/SessionStateVariableAPIs.cs b/src/System.Management.Automation/engine/SessionStateVariableAPIs.cs index 1e0bd498a..0abd2c3e9 100644 --- a/src/System.Management.Automation/engine/SessionStateVariableAPIs.cs +++ b/src/System.Management.Automation/engine/SessionStateVariableAPIs.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; diff --git a/src/System.Management.Automation/engine/ShellVariable.cs b/src/System.Management.Automation/engine/ShellVariable.cs index ba09d28f9..616b52c90 100644 --- a/src/System.Management.Automation/engine/ShellVariable.cs +++ b/src/System.Management.Automation/engine/ShellVariable.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Management.Automation.Language; using System.Management.Automation.Runspaces; using System.Runtime.CompilerServices; diff --git a/src/System.Management.Automation/engine/SpecialVariables.cs b/src/System.Management.Automation/engine/SpecialVariables.cs index ac931fe92..91a9fc045 100644 --- a/src/System.Management.Automation/engine/SpecialVariables.cs +++ b/src/System.Management.Automation/engine/SpecialVariables.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.Generic; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/TransactedString.cs b/src/System.Management.Automation/engine/TransactedString.cs index 562d86f81..0e3a24d68 100644 --- a/src/System.Management.Automation/engine/TransactedString.cs +++ b/src/System.Management.Automation/engine/TransactedString.cs @@ -3,13 +3,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.Diagnostics; -using System.Runtime.Serialization; -using System.Runtime.Serialization.Formatters.Binary; -using System.IO; using System.Transactions; -using System.Threading; -using System.Collections.Generic; using System.Text; namespace Microsoft.PowerShell.Commands.Management diff --git a/src/System.Management.Automation/engine/TransactionManager.cs b/src/System.Management.Automation/engine/TransactionManager.cs index 842d75789..2b91a6c4d 100644 --- a/src/System.Management.Automation/engine/TransactionManager.cs +++ b/src/System.Management.Automation/engine/TransactionManager.cs @@ -4,7 +4,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.Generic; using System.Transactions; using System.Management.Automation.Internal; diff --git a/src/System.Management.Automation/engine/TypeTable.cs b/src/System.Management.Automation/engine/TypeTable.cs index 0bab1ee05..b2a55d225 100644 --- a/src/System.Management.Automation/engine/TypeTable.cs +++ b/src/System.Management.Automation/engine/TypeTable.cs @@ -16,7 +16,6 @@ using System.Management.Automation.Language; using System.Reflection; using System.Runtime.Serialization; using System.Security; -using System.Threading.Tasks; using System.Xml; using Dbg = System.Diagnostics.Debug; #if !CORECLR diff --git a/src/System.Management.Automation/engine/Utils.cs b/src/System.Management.Automation/engine/Utils.cs index 0c783d116..70f447955 100644 --- a/src/System.Management.Automation/engine/Utils.cs +++ b/src/System.Management.Automation/engine/Utils.cs @@ -17,7 +17,6 @@ using System.Collections.ObjectModel; using System.Collections.Generic; using System.Collections.Concurrent; using System.ComponentModel; -using System.Management.Automation.Language; using System.Runtime.CompilerServices; using System.Threading; using System.Text; diff --git a/src/System.Management.Automation/engine/VariableAttributeCollection.cs b/src/System.Management.Automation/engine/VariableAttributeCollection.cs index ade5a6947..dfe5db5ba 100644 --- a/src/System.Management.Automation/engine/VariableAttributeCollection.cs +++ b/src/System.Management.Automation/engine/VariableAttributeCollection.cs @@ -2,12 +2,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using Dbg = System.Management.Automation; -using System.Collections; using System.Collections.ObjectModel; -using System.IO; -using System.Threading; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/VariableInterfaces.cs b/src/System.Management.Automation/engine/VariableInterfaces.cs index 777fa4b85..ba32a469d 100644 --- a/src/System.Management.Automation/engine/VariableInterfaces.cs +++ b/src/System.Management.Automation/engine/VariableInterfaces.cs @@ -2,10 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; -using System.Globalization; -using System.Management.Automation; using Dbg = System.Management.Automation; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/VariablePath.cs b/src/System.Management.Automation/engine/VariablePath.cs index d6c0b00f0..dbe5eaf24 100644 --- a/src/System.Management.Automation/engine/VariablePath.cs +++ b/src/System.Management.Automation/engine/VariablePath.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; diff --git a/src/System.Management.Automation/engine/cmdlet.cs b/src/System.Management.Automation/engine/cmdlet.cs index 330f3bd0b..0312141f0 100644 --- a/src/System.Management.Automation/engine/cmdlet.cs +++ b/src/System.Management.Automation/engine/cmdlet.cs @@ -4,20 +4,12 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections; using System.Diagnostics.CodeAnalysis; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Globalization; -using System.Management.Automation; using System.Reflection; -using System.Text; -using System.Diagnostics; using System.Resources; -using System.Management.Automation.Host; -using System.Management.Automation.Internal.Host; -using System.Threading; using System.Management.Automation.Internal; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/debugger/debugger.cs b/src/System.Management.Automation/engine/debugger/debugger.cs index 0da8a19f5..036db02ec 100644 --- a/src/System.Management.Automation/engine/debugger/debugger.cs +++ b/src/System.Management.Automation/engine/debugger/debugger.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections; using System.Diagnostics; using System.Globalization; diff --git a/src/System.Management.Automation/engine/hostifaces/AsyncResult.cs b/src/System.Management.Automation/engine/hostifaces/AsyncResult.cs index 8baa4fdec..10bcffb9d 100644 --- a/src/System.Management.Automation/engine/hostifaces/AsyncResult.cs +++ b/src/System.Management.Automation/engine/hostifaces/AsyncResult.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Threading; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/hostifaces/ChoiceDescription.cs b/src/System.Management.Automation/engine/hostifaces/ChoiceDescription.cs index da3a6d03e..576b09f0d 100644 --- a/src/System.Management.Automation/engine/hostifaces/ChoiceDescription.cs +++ b/src/System.Management.Automation/engine/hostifaces/ChoiceDescription.cs @@ -3,8 +3,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ - -using System; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/hostifaces/Command.cs b/src/System.Management.Automation/engine/hostifaces/Command.cs index 1e0b3c3ed..0cf74f72b 100644 --- a/src/System.Management.Automation/engine/hostifaces/Command.cs +++ b/src/System.Management.Automation/engine/hostifaces/Command.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/hostifaces/Connection.cs b/src/System.Management.Automation/engine/hostifaces/Connection.cs index d58a57208..a8aaa9d9f 100644 --- a/src/System.Management.Automation/engine/hostifaces/Connection.cs +++ b/src/System.Management.Automation/engine/hostifaces/Connection.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.Serialization; using System.Threading; diff --git a/src/System.Management.Automation/engine/hostifaces/ConnectionBase.cs b/src/System.Management.Automation/engine/hostifaces/ConnectionBase.cs index 7136a61a2..057cddfaa 100644 --- a/src/System.Management.Automation/engine/hostifaces/ConnectionBase.cs +++ b/src/System.Management.Automation/engine/hostifaces/ConnectionBase.cs @@ -2,7 +2,6 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * --********************************************************************/ -using System; using System.Collections.Generic; using System.Linq; using System.Threading; diff --git a/src/System.Management.Automation/engine/hostifaces/DefaultHost.cs b/src/System.Management.Automation/engine/hostifaces/DefaultHost.cs index 3dd201630..c083a543f 100644 --- a/src/System.Management.Automation/engine/hostifaces/DefaultHost.cs +++ b/src/System.Management.Automation/engine/hostifaces/DefaultHost.cs @@ -4,11 +4,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Globalization; -using System.Diagnostics; using System.Management.Automation; using System.Management.Automation.Host; -using System.Reflection; - using Dbg = System.Diagnostics; namespace Microsoft.PowerShell diff --git a/src/System.Management.Automation/engine/hostifaces/FieldDescription.cs b/src/System.Management.Automation/engine/hostifaces/FieldDescription.cs index 83f845547..1f6712ca1 100644 --- a/src/System.Management.Automation/engine/hostifaces/FieldDescription.cs +++ b/src/System.Management.Automation/engine/hostifaces/FieldDescription.cs @@ -3,8 +3,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ - -using System; using System.Collections.ObjectModel; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/hostifaces/History.cs b/src/System.Management.Automation/engine/hostifaces/History.cs index 28471882d..ba6c3b679 100644 --- a/src/System.Management.Automation/engine/hostifaces/History.cs +++ b/src/System.Management.Automation/engine/hostifaces/History.cs @@ -3,7 +3,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; @@ -13,7 +12,6 @@ using System.Management.Automation.Host; using System.Management.Automation.Internal; using System.Management.Automation.Runspaces; using Dbg = System.Management.Automation.Diagnostics; -using PipelineResultTypes = System.Management.Automation.Runspaces.PipelineResultTypes; namespace Microsoft.PowerShell.Commands diff --git a/src/System.Management.Automation/engine/hostifaces/HostUtilities.cs b/src/System.Management.Automation/engine/hostifaces/HostUtilities.cs index 76f292241..1928eed5b 100644 --- a/src/System.Management.Automation/engine/hostifaces/HostUtilities.cs +++ b/src/System.Management.Automation/engine/hostifaces/HostUtilities.cs @@ -1,4 +1,3 @@ -using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; diff --git a/src/System.Management.Automation/engine/hostifaces/InformationalRecord.cs b/src/System.Management.Automation/engine/hostifaces/InformationalRecord.cs index c1109b45e..84a67bfee 100644 --- a/src/System.Management.Automation/engine/hostifaces/InformationalRecord.cs +++ b/src/System.Management.Automation/engine/hostifaces/InformationalRecord.cs @@ -2,7 +2,6 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * --********************************************************************/ -using System; using System.Collections; using System.Collections.ObjectModel; using System.Runtime.Serialization; diff --git a/src/System.Management.Automation/engine/hostifaces/InternalHostRawUserInterface.cs b/src/System.Management.Automation/engine/hostifaces/InternalHostRawUserInterface.cs index d30b12b4c..eeb2c4165 100644 --- a/src/System.Management.Automation/engine/hostifaces/InternalHostRawUserInterface.cs +++ b/src/System.Management.Automation/engine/hostifaces/InternalHostRawUserInterface.cs @@ -3,8 +3,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ - -using System.Management.Automation; using System.Management.Automation.Host; using System.Management.Automation.Runspaces; diff --git a/src/System.Management.Automation/engine/hostifaces/LocalPipeline.cs b/src/System.Management.Automation/engine/hostifaces/LocalPipeline.cs index 4b3943a87..d39f15682 100644 --- a/src/System.Management.Automation/engine/hostifaces/LocalPipeline.cs +++ b/src/System.Management.Automation/engine/hostifaces/LocalPipeline.cs @@ -2,7 +2,6 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * --********************************************************************/ -using System; using System.Diagnostics; using System.Collections.Generic; using System.Globalization; diff --git a/src/System.Management.Automation/engine/hostifaces/MshHost.cs b/src/System.Management.Automation/engine/hostifaces/MshHost.cs index f3d0bacf3..179d7887e 100644 --- a/src/System.Management.Automation/engine/hostifaces/MshHost.cs +++ b/src/System.Management.Automation/engine/hostifaces/MshHost.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System.IO; using System.Management.Automation.Runspaces; using System.Diagnostics.CodeAnalysis; diff --git a/src/System.Management.Automation/engine/hostifaces/MshHostRawUserInterface.cs b/src/System.Management.Automation/engine/hostifaces/MshHostRawUserInterface.cs index f21906b38..add081208 100644 --- a/src/System.Management.Automation/engine/hostifaces/MshHostRawUserInterface.cs +++ b/src/System.Management.Automation/engine/hostifaces/MshHostRawUserInterface.cs @@ -3,9 +3,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ - -using System; -using System.Collections; using System.Globalization; #pragma warning disable 1634, 1691 // Stops compiler from warning about unknown warnings diff --git a/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs b/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs index 6fc29050d..67b844ba1 100644 --- a/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs +++ b/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs @@ -9,7 +9,6 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Security; using System.Globalization; -using Microsoft.Win32; using System.Management.Automation.Runspaces; using Microsoft.PowerShell.Commands; using System.Threading.Tasks; diff --git a/src/System.Management.Automation/engine/hostifaces/NativeCultureResolver.cs b/src/System.Management.Automation/engine/hostifaces/NativeCultureResolver.cs index 004ffcc73..9ee1e0236 100644 --- a/src/System.Management.Automation/engine/hostifaces/NativeCultureResolver.cs +++ b/src/System.Management.Automation/engine/hostifaces/NativeCultureResolver.cs @@ -21,14 +21,8 @@ These methods are available on Windows Vista and later. using System; using System.Globalization; -using System.Threading; using System.Runtime.InteropServices; using System.Text; -using Microsoft.Win32; -using System.Collections.ObjectModel; -using System.Collections.Generic; - -using System.Management.Automation; using Dbg = System.Management.Automation.Diagnostics; using WORD = System.UInt16; diff --git a/src/System.Management.Automation/engine/hostifaces/PSCommand.cs b/src/System.Management.Automation/engine/hostifaces/PSCommand.cs index 942989567..987efa6a6 100644 --- a/src/System.Management.Automation/engine/hostifaces/PSCommand.cs +++ b/src/System.Management.Automation/engine/hostifaces/PSCommand.cs @@ -4,7 +4,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System.Management.Automation.Runspaces; using Dbg = System.Management.Automation.Diagnostics; -using System.Collections.ObjectModel; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/hostifaces/PSDataCollection.cs b/src/System.Management.Automation/engine/hostifaces/PSDataCollection.cs index 3d120d02d..175b48f71 100644 --- a/src/System.Management.Automation/engine/hostifaces/PSDataCollection.cs +++ b/src/System.Management.Automation/engine/hostifaces/PSDataCollection.cs @@ -2,7 +2,6 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * --********************************************************************/ -using System; using System.Collections; using System.Collections.ObjectModel; using System.Collections.Generic; diff --git a/src/System.Management.Automation/engine/hostifaces/RunspaceInit.cs b/src/System.Management.Automation/engine/hostifaces/RunspaceInit.cs index b85959d42..46cb04c4e 100644 --- a/src/System.Management.Automation/engine/hostifaces/RunspaceInit.cs +++ b/src/System.Management.Automation/engine/hostifaces/RunspaceInit.cs @@ -2,26 +2,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.IO; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Diagnostics; -using System.Text; -using System.Threading; -using System.Management.Automation; -using System.Management.Automation.Host; -using Microsoft.PowerShell.Commands; -using System.Management.Automation.Internal; -using System.Reflection; -using System.Runtime.InteropServices; - using Dbg = System.Management.Automation.Diagnostics; using DWORD = System.UInt32; -using Microsoft.Win32; -using System.Security; - namespace System.Management.Automation.Runspaces diff --git a/src/System.Management.Automation/engine/hostifaces/internalHostuserInterfacesecurity.cs b/src/System.Management.Automation/engine/hostifaces/internalHostuserInterfacesecurity.cs index 8a09fece9..fab3f2ae7 100644 --- a/src/System.Management.Automation/engine/hostifaces/internalHostuserInterfacesecurity.cs +++ b/src/System.Management.Automation/engine/hostifaces/internalHostuserInterfacesecurity.cs @@ -3,12 +3,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System.Management.Automation; using System.Management.Automation.Host; using System.Management.Automation.Runspaces; -using System.Collections.ObjectModel; -using System.Security; - using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Internal.Host diff --git a/src/System.Management.Automation/engine/hostifaces/pipelinebase.cs b/src/System.Management.Automation/engine/hostifaces/pipelinebase.cs index a6a9d0c8a..74ff3cd01 100644 --- a/src/System.Management.Automation/engine/hostifaces/pipelinebase.cs +++ b/src/System.Management.Automation/engine/hostifaces/pipelinebase.cs @@ -5,8 +5,6 @@ namespace System.Management.Automation.Runspaces { using System; - using System.IO; - using System.Globalization; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; diff --git a/src/System.Management.Automation/engine/interpreter/AddInstruction.cs b/src/System.Management.Automation/engine/interpreter/AddInstruction.cs index f0f023213..ef9e74341 100644 --- a/src/System.Management.Automation/engine/interpreter/AddInstruction.cs +++ b/src/System.Management.Automation/engine/interpreter/AddInstruction.cs @@ -13,7 +13,6 @@ * * ***************************************************************************/ -using System; using System.Diagnostics; using System.Reflection; diff --git a/src/System.Management.Automation/engine/interpreter/ArrayOperations.cs b/src/System.Management.Automation/engine/interpreter/ArrayOperations.cs index e2a39751f..cbf056018 100644 --- a/src/System.Management.Automation/engine/interpreter/ArrayOperations.cs +++ b/src/System.Management.Automation/engine/interpreter/ArrayOperations.cs @@ -13,8 +13,6 @@ * * ***************************************************************************/ -using System; - namespace System.Management.Automation.Interpreter { internal sealed class NewArrayInitInstruction : Instruction diff --git a/src/System.Management.Automation/engine/interpreter/BranchLabel.cs b/src/System.Management.Automation/engine/interpreter/BranchLabel.cs index 531a37e4a..c047d68fc 100644 --- a/src/System.Management.Automation/engine/interpreter/BranchLabel.cs +++ b/src/System.Management.Automation/engine/interpreter/BranchLabel.cs @@ -13,7 +13,6 @@ * * ***************************************************************************/ -using System; using System.Diagnostics; using System.Collections.Generic; using System.Globalization; diff --git a/src/System.Management.Automation/engine/interpreter/CallInstruction.cs b/src/System.Management.Automation/engine/interpreter/CallInstruction.cs index 485d74054..4d5a7da58 100644 --- a/src/System.Management.Automation/engine/interpreter/CallInstruction.cs +++ b/src/System.Management.Automation/engine/interpreter/CallInstruction.cs @@ -13,7 +13,6 @@ * * ***************************************************************************/ -using System; using System.Collections.Generic; using System.Reflection; using System.Reflection.Emit; diff --git a/src/System.Management.Automation/engine/interpreter/ControlFlowInstructions.cs b/src/System.Management.Automation/engine/interpreter/ControlFlowInstructions.cs index e7260054d..291de3b7e 100644 --- a/src/System.Management.Automation/engine/interpreter/ControlFlowInstructions.cs +++ b/src/System.Management.Automation/engine/interpreter/ControlFlowInstructions.cs @@ -16,8 +16,6 @@ #if !CLR2 using System.Linq.Expressions; #endif - -using System; using System.Collections.Generic; using System.Diagnostics; using System.Management.Automation.Language; diff --git a/src/System.Management.Automation/engine/interpreter/DivInstruction.cs b/src/System.Management.Automation/engine/interpreter/DivInstruction.cs index e4e096dd2..87dad3714 100644 --- a/src/System.Management.Automation/engine/interpreter/DivInstruction.cs +++ b/src/System.Management.Automation/engine/interpreter/DivInstruction.cs @@ -13,7 +13,6 @@ * * ***************************************************************************/ -using System; using System.Diagnostics; using System.Reflection; diff --git a/src/System.Management.Automation/engine/interpreter/DynamicInstructionN.cs b/src/System.Management.Automation/engine/interpreter/DynamicInstructionN.cs index 4f84132d5..2bcc0cf7f 100644 --- a/src/System.Management.Automation/engine/interpreter/DynamicInstructionN.cs +++ b/src/System.Management.Automation/engine/interpreter/DynamicInstructionN.cs @@ -13,11 +13,11 @@ * * ***************************************************************************/ - -using System; -using System.Collections.Generic; using System.Runtime.CompilerServices; + +#if CORECLR using System.Reflection; +#endif namespace System.Management.Automation.Interpreter { diff --git a/src/System.Management.Automation/engine/interpreter/DynamicSplatInstruction.cs b/src/System.Management.Automation/engine/interpreter/DynamicSplatInstruction.cs index 3279931df..36d8011d9 100644 --- a/src/System.Management.Automation/engine/interpreter/DynamicSplatInstruction.cs +++ b/src/System.Management.Automation/engine/interpreter/DynamicSplatInstruction.cs @@ -14,10 +14,7 @@ * ***************************************************************************/ -using System; -using System.Collections.Generic; using System.Runtime.CompilerServices; -using System.Reflection; namespace System.Management.Automation.Interpreter { diff --git a/src/System.Management.Automation/engine/interpreter/EqualInstruction.cs b/src/System.Management.Automation/engine/interpreter/EqualInstruction.cs index 229beddf6..486b372cf 100644 --- a/src/System.Management.Automation/engine/interpreter/EqualInstruction.cs +++ b/src/System.Management.Automation/engine/interpreter/EqualInstruction.cs @@ -13,11 +13,7 @@ * * ***************************************************************************/ -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Reflection; -using System.Runtime.CompilerServices; namespace System.Management.Automation.Interpreter { diff --git a/src/System.Management.Automation/engine/interpreter/FieldOperations.cs b/src/System.Management.Automation/engine/interpreter/FieldOperations.cs index 489139b3b..2eac25455 100644 --- a/src/System.Management.Automation/engine/interpreter/FieldOperations.cs +++ b/src/System.Management.Automation/engine/interpreter/FieldOperations.cs @@ -13,11 +13,8 @@ * * ***************************************************************************/ -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Reflection; -using System.Runtime.CompilerServices; namespace System.Management.Automation.Interpreter { diff --git a/src/System.Management.Automation/engine/interpreter/GreaterThanInstruction.cs b/src/System.Management.Automation/engine/interpreter/GreaterThanInstruction.cs index fdc95c243..1da52ea81 100644 --- a/src/System.Management.Automation/engine/interpreter/GreaterThanInstruction.cs +++ b/src/System.Management.Automation/engine/interpreter/GreaterThanInstruction.cs @@ -13,11 +13,8 @@ * * ***************************************************************************/ -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Reflection; -using System.Runtime.CompilerServices; namespace System.Management.Automation.Interpreter { diff --git a/src/System.Management.Automation/engine/interpreter/ILightCallSiteBinder.cs b/src/System.Management.Automation/engine/interpreter/ILightCallSiteBinder.cs index a994e5bb0..cb538e96c 100644 --- a/src/System.Management.Automation/engine/interpreter/ILightCallSiteBinder.cs +++ b/src/System.Management.Automation/engine/interpreter/ILightCallSiteBinder.cs @@ -14,17 +14,10 @@ * ***************************************************************************/ #if !CLR2 -using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif -using System; -using System.Reflection; -using System.Management.Automation.Interpreter; -using System.Runtime.CompilerServices; -using System.Collections.Generic; - namespace System.Management.Automation.Interpreter { internal interface ILightCallSiteBinder diff --git a/src/System.Management.Automation/engine/interpreter/Instruction.cs b/src/System.Management.Automation/engine/interpreter/Instruction.cs index 542ba84e6..c24f05f14 100644 --- a/src/System.Management.Automation/engine/interpreter/Instruction.cs +++ b/src/System.Management.Automation/engine/interpreter/Instruction.cs @@ -13,11 +13,7 @@ * * ***************************************************************************/ -using System; using System.Collections.Generic; -using System.Diagnostics; -using System.Reflection; -using System.Runtime.CompilerServices; namespace System.Management.Automation.Interpreter { diff --git a/src/System.Management.Automation/engine/interpreter/InstructionList.cs b/src/System.Management.Automation/engine/interpreter/InstructionList.cs index 8dee16fe6..e022e93b3 100644 --- a/src/System.Management.Automation/engine/interpreter/InstructionList.cs +++ b/src/System.Management.Automation/engine/interpreter/InstructionList.cs @@ -15,7 +15,6 @@ // Enables instruction counting and displaying stats at process exit. // #define STATS -using System; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; diff --git a/src/System.Management.Automation/engine/interpreter/InterpretedFrame.cs b/src/System.Management.Automation/engine/interpreter/InterpretedFrame.cs index 44dfd0c2c..8e5e5af30 100644 --- a/src/System.Management.Automation/engine/interpreter/InterpretedFrame.cs +++ b/src/System.Management.Automation/engine/interpreter/InterpretedFrame.cs @@ -14,12 +14,9 @@ * ***************************************************************************/ #if !CLR2 -using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Collections.Generic; using System.Diagnostics; using System.Management.Automation.Language; diff --git a/src/System.Management.Automation/engine/interpreter/Interpreter.cs b/src/System.Management.Automation/engine/interpreter/Interpreter.cs index 1a4048808..18a5de62b 100644 --- a/src/System.Management.Automation/engine/interpreter/Interpreter.cs +++ b/src/System.Management.Automation/engine/interpreter/Interpreter.cs @@ -14,7 +14,6 @@ * ***************************************************************************/ #if !CLR2 -using System.Linq; using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; @@ -24,9 +23,6 @@ using Microsoft.Scripting.Ast; // Use stub for SpecialNameAttribute using Microsoft.PowerShell.CoreClr.Stubs; #endif - -using System; -using System.Reflection; using System.Runtime.CompilerServices; using System.Threading; diff --git a/src/System.Management.Automation/engine/interpreter/LabelInfo.cs b/src/System.Management.Automation/engine/interpreter/LabelInfo.cs index a8f5760aa..85b03980a 100644 --- a/src/System.Management.Automation/engine/interpreter/LabelInfo.cs +++ b/src/System.Management.Automation/engine/interpreter/LabelInfo.cs @@ -20,11 +20,7 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Collections.Generic; -using System.Text; -using System.Reflection.Emit; using System.Diagnostics; namespace System.Management.Automation.Interpreter diff --git a/src/System.Management.Automation/engine/interpreter/LessThanInstruction.cs b/src/System.Management.Automation/engine/interpreter/LessThanInstruction.cs index fd9093091..a9e357f62 100644 --- a/src/System.Management.Automation/engine/interpreter/LessThanInstruction.cs +++ b/src/System.Management.Automation/engine/interpreter/LessThanInstruction.cs @@ -13,11 +13,8 @@ * * ***************************************************************************/ -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Reflection; -using System.Runtime.CompilerServices; namespace System.Management.Automation.Interpreter { diff --git a/src/System.Management.Automation/engine/interpreter/LightCompiler.cs b/src/System.Management.Automation/engine/interpreter/LightCompiler.cs index 7b09adc82..b06dd5a87 100644 --- a/src/System.Management.Automation/engine/interpreter/LightCompiler.cs +++ b/src/System.Management.Automation/engine/interpreter/LightCompiler.cs @@ -23,8 +23,6 @@ using System.Linq.Expressions; // Use stubs for Serializable attribute and SystemException using Microsoft.PowerShell.CoreClr.Stubs; #endif - -using System; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; diff --git a/src/System.Management.Automation/engine/interpreter/LightDelegateCreator.cs b/src/System.Management.Automation/engine/interpreter/LightDelegateCreator.cs index 12daf7f9b..6f1057b26 100644 --- a/src/System.Management.Automation/engine/interpreter/LightDelegateCreator.cs +++ b/src/System.Management.Automation/engine/interpreter/LightDelegateCreator.cs @@ -16,12 +16,9 @@ #if !CLR2 using System.Linq.Expressions; #endif - -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Runtime.CompilerServices; -using System.Threading; + //using Microsoft.Scripting.Generation; namespace System.Management.Automation.Interpreter diff --git a/src/System.Management.Automation/engine/interpreter/LightLambda.cs b/src/System.Management.Automation/engine/interpreter/LightLambda.cs index ea2566e32..8d934e72a 100644 --- a/src/System.Management.Automation/engine/interpreter/LightLambda.cs +++ b/src/System.Management.Automation/engine/interpreter/LightLambda.cs @@ -18,8 +18,6 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Reflection; using System.Reflection.Emit; using System.Runtime.CompilerServices; diff --git a/src/System.Management.Automation/engine/interpreter/LightLambdaClosureVisitor.cs b/src/System.Management.Automation/engine/interpreter/LightLambdaClosureVisitor.cs index 3e38a495f..69969208f 100644 --- a/src/System.Management.Automation/engine/interpreter/LightLambdaClosureVisitor.cs +++ b/src/System.Management.Automation/engine/interpreter/LightLambdaClosureVisitor.cs @@ -18,8 +18,6 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Collections.Generic; using System.Runtime.CompilerServices; using AstUtils = System.Management.Automation.Interpreter.Utils; diff --git a/src/System.Management.Automation/engine/interpreter/LocalAccess.cs b/src/System.Management.Automation/engine/interpreter/LocalAccess.cs index be8b89766..22ef50cc2 100644 --- a/src/System.Management.Automation/engine/interpreter/LocalAccess.cs +++ b/src/System.Management.Automation/engine/interpreter/LocalAccess.cs @@ -14,12 +14,9 @@ * ***************************************************************************/ #if !CLR2 -using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Reflection; using System.Runtime.CompilerServices; using System.Collections.Generic; diff --git a/src/System.Management.Automation/engine/interpreter/LocalVariables.cs b/src/System.Management.Automation/engine/interpreter/LocalVariables.cs index c18e39d7d..42c5597f2 100644 --- a/src/System.Management.Automation/engine/interpreter/LocalVariables.cs +++ b/src/System.Management.Automation/engine/interpreter/LocalVariables.cs @@ -19,8 +19,6 @@ using System.Linq.Expressions; #else using Microsoft.Scripting.Ast; #endif - -using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.CompilerServices; diff --git a/src/System.Management.Automation/engine/interpreter/LoopCompiler.cs b/src/System.Management.Automation/engine/interpreter/LoopCompiler.cs index 811b7889d..09a59aa15 100644 --- a/src/System.Management.Automation/engine/interpreter/LoopCompiler.cs +++ b/src/System.Management.Automation/engine/interpreter/LoopCompiler.cs @@ -16,8 +16,6 @@ #if !CLR2 using System.Linq.Expressions; #endif - -using System; using System.Collections.Generic; using System.Diagnostics; using System.Management.Automation.Language; @@ -27,7 +25,6 @@ namespace System.Management.Automation.Interpreter { using AstUtils = System.Management.Automation.Interpreter.Utils; using LoopFunc = Func[], InterpretedFrame, int>; - using System.Collections.ObjectModel; internal sealed class LoopCompiler : ExpressionVisitor { diff --git a/src/System.Management.Automation/engine/interpreter/MulInstruction.cs b/src/System.Management.Automation/engine/interpreter/MulInstruction.cs index 2a716a42b..93ac3b984 100644 --- a/src/System.Management.Automation/engine/interpreter/MulInstruction.cs +++ b/src/System.Management.Automation/engine/interpreter/MulInstruction.cs @@ -13,7 +13,6 @@ * * ***************************************************************************/ -using System; using System.Diagnostics; using System.Reflection; diff --git a/src/System.Management.Automation/engine/interpreter/NotEqualInstruction.cs b/src/System.Management.Automation/engine/interpreter/NotEqualInstruction.cs index 9e24c2220..056e67320 100644 --- a/src/System.Management.Automation/engine/interpreter/NotEqualInstruction.cs +++ b/src/System.Management.Automation/engine/interpreter/NotEqualInstruction.cs @@ -13,11 +13,7 @@ * * ***************************************************************************/ -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Reflection; -using System.Runtime.CompilerServices; namespace System.Management.Automation.Interpreter { diff --git a/src/System.Management.Automation/engine/interpreter/NumericConvertInstruction.cs b/src/System.Management.Automation/engine/interpreter/NumericConvertInstruction.cs index 759977068..5c541fbdf 100644 --- a/src/System.Management.Automation/engine/interpreter/NumericConvertInstruction.cs +++ b/src/System.Management.Automation/engine/interpreter/NumericConvertInstruction.cs @@ -13,12 +13,6 @@ * * ***************************************************************************/ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Reflection; -using System.Runtime.CompilerServices; - namespace System.Management.Automation.Interpreter { internal abstract class NumericConvertInstruction : Instruction diff --git a/src/System.Management.Automation/engine/interpreter/PowerShellInstructions.cs b/src/System.Management.Automation/engine/interpreter/PowerShellInstructions.cs index a01d4f316..5958127d4 100644 --- a/src/System.Management.Automation/engine/interpreter/PowerShellInstructions.cs +++ b/src/System.Management.Automation/engine/interpreter/PowerShellInstructions.cs @@ -13,10 +13,6 @@ * * ***************************************************************************/ -using System; -using System.Diagnostics; -using System.Management.Automation.Language; - namespace System.Management.Automation.Interpreter { internal class UpdatePositionInstruction : Instruction diff --git a/src/System.Management.Automation/engine/interpreter/RuntimeVariables.cs b/src/System.Management.Automation/engine/interpreter/RuntimeVariables.cs index dbfe3e272..1c28c95a7 100644 --- a/src/System.Management.Automation/engine/interpreter/RuntimeVariables.cs +++ b/src/System.Management.Automation/engine/interpreter/RuntimeVariables.cs @@ -13,7 +13,6 @@ * * ***************************************************************************/ -using System; using System.Runtime.CompilerServices; #if CORECLR diff --git a/src/System.Management.Automation/engine/interpreter/StackOperations.cs b/src/System.Management.Automation/engine/interpreter/StackOperations.cs index d1624f115..9a44211c4 100644 --- a/src/System.Management.Automation/engine/interpreter/StackOperations.cs +++ b/src/System.Management.Automation/engine/interpreter/StackOperations.cs @@ -14,8 +14,6 @@ * ***************************************************************************/ using System.Collections.Generic; -using System; -using System.Diagnostics; using System.Globalization; namespace System.Management.Automation.Interpreter diff --git a/src/System.Management.Automation/engine/interpreter/SubInstruction.cs b/src/System.Management.Automation/engine/interpreter/SubInstruction.cs index eef296e88..7145474bc 100644 --- a/src/System.Management.Automation/engine/interpreter/SubInstruction.cs +++ b/src/System.Management.Automation/engine/interpreter/SubInstruction.cs @@ -13,7 +13,6 @@ * * ***************************************************************************/ -using System; using System.Diagnostics; using System.Reflection; diff --git a/src/System.Management.Automation/engine/interpreter/TypeOperations.cs b/src/System.Management.Automation/engine/interpreter/TypeOperations.cs index 90fdcb0cf..2cfc450ac 100644 --- a/src/System.Management.Automation/engine/interpreter/TypeOperations.cs +++ b/src/System.Management.Automation/engine/interpreter/TypeOperations.cs @@ -13,9 +13,6 @@ * * ***************************************************************************/ -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; diff --git a/src/System.Management.Automation/engine/interpreter/Utilities.cs b/src/System.Management.Automation/engine/interpreter/Utilities.cs index 5183defe6..2d1dba672 100644 --- a/src/System.Management.Automation/engine/interpreter/Utilities.cs +++ b/src/System.Management.Automation/engine/interpreter/Utilities.cs @@ -2,7 +2,6 @@ // Copyright (C) Microsoft. All rights reserved. // -using System; using System.Collections.Generic; using System.Diagnostics; using System.Dynamic; diff --git a/src/System.Management.Automation/engine/lang/codegen.cs b/src/System.Management.Automation/engine/lang/codegen.cs index 961f1da9f..bc77eb03e 100644 --- a/src/System.Management.Automation/engine/lang/codegen.cs +++ b/src/System.Management.Automation/engine/lang/codegen.cs @@ -2,18 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Runtime.CompilerServices; using System.Text; -using System.Text.RegularExpressions; -using System.Globalization; -using System.Management.Automation; -using System.Management.Automation.Internal; -using System.Management.Automation.Internal.Host; -using System.Management.Automation.Runspaces; using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Language diff --git a/src/System.Management.Automation/engine/lang/interface/PSParseError.cs b/src/System.Management.Automation/engine/lang/interface/PSParseError.cs index 1dfdcc453..8ba882b5c 100644 --- a/src/System.Management.Automation/engine/lang/interface/PSParseError.cs +++ b/src/System.Management.Automation/engine/lang/interface/PSParseError.cs @@ -10,19 +10,6 @@ --********************************************************************/ -using System; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Globalization; -using System.Reflection; -using System.IO; -using System.Management.Automation.Internal; -using System.Management.Automation.Host; -using System.Management.Automation.Internal.Host; -using System.Management.Automation.Runspaces; using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/lang/interface/PSParser.cs b/src/System.Management.Automation/engine/lang/interface/PSParser.cs index dde5dcbb7..349013867 100644 --- a/src/System.Management.Automation/engine/lang/interface/PSParser.cs +++ b/src/System.Management.Automation/engine/lang/interface/PSParser.cs @@ -10,20 +10,10 @@ --********************************************************************/ -using System; using System.Text; -using System.Text.RegularExpressions; -using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Globalization; -using System.Reflection; -using System.IO; -using System.Management.Automation.Internal; -using System.Management.Automation.Host; -using System.Management.Automation.Internal.Host; using System.Management.Automation.Language; -using System.Management.Automation.Runspaces; using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/lang/interface/PSToken.cs b/src/System.Management.Automation/engine/lang/interface/PSToken.cs index 976e3e255..6ef65795e 100644 --- a/src/System.Management.Automation/engine/lang/interface/PSToken.cs +++ b/src/System.Management.Automation/engine/lang/interface/PSToken.cs @@ -10,9 +10,7 @@ --********************************************************************/ -using System; using System.Management.Automation.Language; -using System.Collections.Generic; using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/lang/parserutils.cs b/src/System.Management.Automation/engine/lang/parserutils.cs index 4d99be85d..6f6d2850a 100644 --- a/src/System.Management.Automation/engine/lang/parserutils.cs +++ b/src/System.Management.Automation/engine/lang/parserutils.cs @@ -5,7 +5,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Serialization; diff --git a/src/System.Management.Automation/engine/parser/CharTraits.cs b/src/System.Management.Automation/engine/parser/CharTraits.cs index c652175fc..bd22992cb 100644 --- a/src/System.Management.Automation/engine/parser/CharTraits.cs +++ b/src/System.Management.Automation/engine/parser/CharTraits.cs @@ -2,8 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System.Globalization; - namespace System.Management.Automation.Language { internal static class SpecialChars diff --git a/src/System.Management.Automation/engine/parser/DebugViewWriter.cs b/src/System.Management.Automation/engine/parser/DebugViewWriter.cs index 8355c7669..7bacf0beb 100644 --- a/src/System.Management.Automation/engine/parser/DebugViewWriter.cs +++ b/src/System.Management.Automation/engine/parser/DebugViewWriter.cs @@ -13,16 +13,7 @@ * * ***************************************************************************/ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Dynamic; -using System.Globalization; -using System.IO; -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Collections.ObjectModel; -using System.Linq.Expressions; + #if ENABLE_BINDER_DEBUG_LOGGING && !CORECLR namespace System.Management.Automation.Language { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling")] diff --git a/src/System.Management.Automation/engine/parser/PSType.cs b/src/System.Management.Automation/engine/parser/PSType.cs index 78ed50f3a..b17f6b8f3 100644 --- a/src/System.Management.Automation/engine/parser/PSType.cs +++ b/src/System.Management.Automation/engine/parser/PSType.cs @@ -11,7 +11,6 @@ using System.Reflection.Emit; using Microsoft.PowerShell; using System.Threading; using System.Management.Automation.Internal; -using System.Text; namespace System.Management.Automation.Language { diff --git a/src/System.Management.Automation/engine/parser/Parser.cs b/src/System.Management.Automation/engine/parser/Parser.cs index 041b4b99e..9fa89396b 100644 --- a/src/System.Management.Automation/engine/parser/Parser.cs +++ b/src/System.Management.Automation/engine/parser/Parser.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System.Diagnostics; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; diff --git a/src/System.Management.Automation/engine/parser/PreOrderVisitor.cs b/src/System.Management.Automation/engine/parser/PreOrderVisitor.cs index d38a8d201..f5031214c 100644 --- a/src/System.Management.Automation/engine/parser/PreOrderVisitor.cs +++ b/src/System.Management.Automation/engine/parser/PreOrderVisitor.cs @@ -2,8 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; namespace System.Management.Automation.Language diff --git a/src/System.Management.Automation/engine/parser/SafeValues.cs b/src/System.Management.Automation/engine/parser/SafeValues.cs index b5f2b0d72..469615da9 100644 --- a/src/System.Management.Automation/engine/parser/SafeValues.cs +++ b/src/System.Management.Automation/engine/parser/SafeValues.cs @@ -5,7 +5,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System.Collections; using System.IO; using System.Linq; -using System.Runtime.CompilerServices; using System.Management.Automation.Internal; /* diff --git a/src/System.Management.Automation/engine/parser/token.cs b/src/System.Management.Automation/engine/parser/token.cs index 06eafcc6b..9b573dd08 100644 --- a/src/System.Management.Automation/engine/parser/token.cs +++ b/src/System.Management.Automation/engine/parser/token.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; using System.Globalization; -using System.Linq; using System.Text; namespace System.Management.Automation.Language diff --git a/src/System.Management.Automation/engine/remoting/client/ClientMethodExecutor.cs b/src/System.Management.Automation/engine/remoting/client/ClientMethodExecutor.cs index d60bfb117..2fc73b564 100644 --- a/src/System.Management.Automation/engine/remoting/client/ClientMethodExecutor.cs +++ b/src/System.Management.Automation/engine/remoting/client/ClientMethodExecutor.cs @@ -2,17 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.IO; -using System.Reflection; -using System.Text; -using System.Threading; -using System.Management.Automation; using System.Management.Automation.Host; -using System.Management.Automation.Remoting; using System.Management.Automation.Internal; using System.Management.Automation.Remoting.Client; using System.Management.Automation.Runspaces.Internal; diff --git a/src/System.Management.Automation/engine/remoting/client/ClientRemotePowerShell.cs b/src/System.Management.Automation/engine/remoting/client/ClientRemotePowerShell.cs index 28fc9693e..b08fad5cc 100644 --- a/src/System.Management.Automation/engine/remoting/client/ClientRemotePowerShell.cs +++ b/src/System.Management.Automation/engine/remoting/client/ClientRemotePowerShell.cs @@ -3,7 +3,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System.Collections.Generic; -using System.Threading; using Dbg = System.Management.Automation.Diagnostics; using System.Management.Automation.Host; using System.Management.Automation.Internal; diff --git a/src/System.Management.Automation/engine/remoting/client/PSProxyJob.cs b/src/System.Management.Automation/engine/remoting/client/PSProxyJob.cs index 15b689f99..c705c1300 100644 --- a/src/System.Management.Automation/engine/remoting/client/PSProxyJob.cs +++ b/src/System.Management.Automation/engine/remoting/client/PSProxyJob.cs @@ -7,7 +7,6 @@ using System.Collections.Concurrent; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; -using System.Globalization; using System.Linq; using System.Management.Automation.Internal; using System.Management.Automation.Remoting; diff --git a/src/System.Management.Automation/engine/remoting/client/RemoteRunspacePoolInternal.cs b/src/System.Management.Automation/engine/remoting/client/RemoteRunspacePoolInternal.cs index 4d9d6a98e..59b1d69c5 100644 --- a/src/System.Management.Automation/engine/remoting/client/RemoteRunspacePoolInternal.cs +++ b/src/System.Management.Automation/engine/remoting/client/RemoteRunspacePoolInternal.cs @@ -7,10 +7,8 @@ using System.Globalization; using System.Management.Automation.Tracing; using System.Threading; using Dbg = System.Management.Automation.Diagnostics; -using System.Management.Automation; using System.Management.Automation.Remoting; using System.Management.Automation.Internal; -using System.Management.Automation.Runspaces.Internal; using System.Management.Automation.Host; using System.Collections.ObjectModel; using System.Management.Automation.Remoting.Client; diff --git a/src/System.Management.Automation/engine/remoting/client/RemotingProtocol2.cs b/src/System.Management.Automation/engine/remoting/client/RemotingProtocol2.cs index a43e276f0..995784275 100644 --- a/src/System.Management.Automation/engine/remoting/client/RemotingProtocol2.cs +++ b/src/System.Management.Automation/engine/remoting/client/RemotingProtocol2.cs @@ -2,14 +2,10 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * --********************************************************************/ -using System; using System.Management.Automation.Tracing; -using System.Security; using System.Collections.ObjectModel; using System.Collections.Generic; using System.Threading; -using System.Globalization; -using System.Management.Automation; using System.Management.Automation.Host; using System.Management.Automation.Runspaces; using System.Management.Automation.Runspaces.Internal; diff --git a/src/System.Management.Automation/engine/remoting/client/RunspaceRef.cs b/src/System.Management.Automation/engine/remoting/client/RunspaceRef.cs index a0af06a63..fdfde0f83 100644 --- a/src/System.Management.Automation/engine/remoting/client/RunspaceRef.cs +++ b/src/System.Management.Automation/engine/remoting/client/RunspaceRef.cs @@ -2,17 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.IO; -using System.Reflection; -using System.Text; -using System.Threading; -using System.Management.Automation; -using System.Management.Automation.Host; -using System.Management.Automation.Remoting; using System.Management.Automation.Internal; using System.Management.Automation.Runspaces; using System.Management.Automation.Runspaces.Internal; diff --git a/src/System.Management.Automation/engine/remoting/client/clientremotesession.cs b/src/System.Management.Automation/engine/remoting/client/clientremotesession.cs index b6a8de542..7c839cdad 100644 --- a/src/System.Management.Automation/engine/remoting/client/clientremotesession.cs +++ b/src/System.Management.Automation/engine/remoting/client/clientremotesession.cs @@ -2,13 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Threading; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Security; -using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Runspaces; using System.Management.Automation.Runspaces.Internal; diff --git a/src/System.Management.Automation/engine/remoting/client/clientremotesessionprotocolstatemachine.cs b/src/System.Management.Automation/engine/remoting/client/clientremotesessionprotocolstatemachine.cs index 1b7e6b397..2e594c6b3 100644 --- a/src/System.Management.Automation/engine/remoting/client/clientremotesessionprotocolstatemachine.cs +++ b/src/System.Management.Automation/engine/remoting/client/clientremotesessionprotocolstatemachine.cs @@ -2,12 +2,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Threading; using System.Collections.Generic; -using System.Management.Automation; -using System.Management.Automation.Remoting; -using System.Management.Automation.Runspaces; using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/client/remotepipeline.cs b/src/System.Management.Automation/engine/remoting/client/remotepipeline.cs index 97184e7a0..3dba999d3 100644 --- a/src/System.Management.Automation/engine/remoting/client/remotepipeline.cs +++ b/src/System.Management.Automation/engine/remoting/client/remotepipeline.cs @@ -3,19 +3,13 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System.Management.Automation; using System.Management.Automation.Runspaces; using System.Management.Automation.Internal; using System.Collections.ObjectModel; -using System.Collections; using System.Collections.Generic; -using System.Net; using System.Management.Automation.Remoting; using Dbg = System.Management.Automation.Diagnostics; -using System.Reflection; -using System.Net.Sockets; using System.Threading; -using System.Diagnostics.CodeAnalysis; using System.Management.Automation.Runspaces.Internal; #pragma warning disable 1634, 1691 // Stops compiler from warning about unknown warnings diff --git a/src/System.Management.Automation/engine/remoting/client/remotingprotocol.cs b/src/System.Management.Automation/engine/remoting/client/remotingprotocol.cs index f61f85884..8ea073945 100644 --- a/src/System.Management.Automation/engine/remoting/client/remotingprotocol.cs +++ b/src/System.Management.Automation/engine/remoting/client/remotingprotocol.cs @@ -2,11 +2,6 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * --********************************************************************/ -using System; -using System.Management.Automation; -using System.Management.Automation.Runspaces; - -using System.Management.Automation.Remoting; using System.Management.Automation.Remoting.Client; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/remoting/commands/ConnectPSSession.cs b/src/System.Management.Automation/engine/remoting/commands/ConnectPSSession.cs index aff5acc7c..4f5297580 100644 --- a/src/System.Management.Automation/engine/remoting/commands/ConnectPSSession.cs +++ b/src/System.Management.Automation/engine/remoting/commands/ConnectPSSession.cs @@ -10,7 +10,6 @@ using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Remoting; using System.Management.Automation.Runspaces; -using System.Management.Automation.Runspaces.Internal; using System.Management.Automation.Remoting.Client; using System.Management.Automation.Host; using System.Threading; diff --git a/src/System.Management.Automation/engine/remoting/commands/DisconnectPSSession.cs b/src/System.Management.Automation/engine/remoting/commands/DisconnectPSSession.cs index 6759ecadd..f3e7eee17 100644 --- a/src/System.Management.Automation/engine/remoting/commands/DisconnectPSSession.cs +++ b/src/System.Management.Automation/engine/remoting/commands/DisconnectPSSession.cs @@ -10,7 +10,6 @@ using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Remoting; using System.Management.Automation.Runspaces; -using System.Management.Automation.Runspaces.Internal; using System.Threading; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/remoting/commands/InvokeCommandCommand.cs b/src/System.Management.Automation/engine/remoting/commands/InvokeCommandCommand.cs index ab769854f..7bd3f13af 100644 --- a/src/System.Management.Automation/engine/remoting/commands/InvokeCommandCommand.cs +++ b/src/System.Management.Automation/engine/remoting/commands/InvokeCommandCommand.cs @@ -6,17 +6,12 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; -using System.Globalization; using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Remoting; using System.Management.Automation.Remoting.Internal; using System.Management.Automation.Runspaces; using System.Management.Automation.Runspaces.Internal; -using System.Net; -using System.Security; -using System.Security.AccessControl; -using System.Security.Cryptography.X509Certificates; using System.Threading; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationOptionCommand.cs b/src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationOptionCommand.cs index c4c01c338..329024a89 100644 --- a/src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationOptionCommand.cs +++ b/src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationOptionCommand.cs @@ -2,9 +2,6 @@ // Copyright (C) Microsoft. All rights reserved. // -using System; -using System.Collections.Generic; -using System.Linq; using System.Text; using System.Collections; using System.Management.Automation; diff --git a/src/System.Management.Automation/engine/remoting/commands/PopRunspaceCommand.cs b/src/System.Management.Automation/engine/remoting/commands/PopRunspaceCommand.cs index 2f75c349a..2c71728ce 100644 --- a/src/System.Management.Automation/engine/remoting/commands/PopRunspaceCommand.cs +++ b/src/System.Management.Automation/engine/remoting/commands/PopRunspaceCommand.cs @@ -3,18 +3,9 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.IO; -using System.Reflection; -using System.Text; -using System.Threading; using System.Management.Automation; using System.Management.Automation.Host; using System.Management.Automation.Remoting; -using System.Management.Automation.Internal; -using System.Management.Automation.Runspaces; using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Commands diff --git a/src/System.Management.Automation/engine/remoting/commands/ReceiveJob.cs b/src/System.Management.Automation/engine/remoting/commands/ReceiveJob.cs index 1459c4e60..16f5fc6d4 100644 --- a/src/System.Management.Automation/engine/remoting/commands/ReceiveJob.cs +++ b/src/System.Management.Automation/engine/remoting/commands/ReceiveJob.cs @@ -8,12 +8,10 @@ using System.Collections.ObjectModel; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Management.Automation; -using System.Management.Automation.Host; using System.Management.Automation.Remoting; using System.Management.Automation.Remoting.Internal; using System.Management.Automation.Runspaces; using System.Management.Automation.Tracing; -using System.Text; using System.Threading; using Dbg = System.Management.Automation.Diagnostics; using System.Management.Automation.Internal; diff --git a/src/System.Management.Automation/engine/remoting/commands/ReceivePSSession.cs b/src/System.Management.Automation/engine/remoting/commands/ReceivePSSession.cs index f015e11be..9606494fd 100644 --- a/src/System.Management.Automation/engine/remoting/commands/ReceivePSSession.cs +++ b/src/System.Management.Automation/engine/remoting/commands/ReceivePSSession.cs @@ -11,8 +11,6 @@ using System.Management.Automation.Internal; using System.Management.Automation.Remoting; using System.Management.Automation.Remoting.Client; using System.Management.Automation.Runspaces; -using System.Management.Automation.Runspaces.Internal; -using System.Management.Automation.Host; using System.Threading; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/remoting/commands/SuspendJob.cs b/src/System.Management.Automation/engine/remoting/commands/SuspendJob.cs index a33872f49..14a7357b9 100644 --- a/src/System.Management.Automation/engine/remoting/commands/SuspendJob.cs +++ b/src/System.Management.Automation/engine/remoting/commands/SuspendJob.cs @@ -4,9 +4,7 @@ using System; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.ComponentModel; -using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Management.Automation; diff --git a/src/System.Management.Automation/engine/remoting/commands/getrunspacecommand.cs b/src/System.Management.Automation/engine/remoting/commands/getrunspacecommand.cs index d8809e9a3..b43522d72 100644 --- a/src/System.Management.Automation/engine/remoting/commands/getrunspacecommand.cs +++ b/src/System.Management.Automation/engine/remoting/commands/getrunspacecommand.cs @@ -3,16 +3,12 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Remoting; using System.Management.Automation.Runspaces; -using System.Management.Automation.Runspaces.Internal; -using System.Management.Automation.Host; -using System.Threading; using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Commands diff --git a/src/System.Management.Automation/engine/remoting/commands/remotingcommandutil.cs b/src/System.Management.Automation/engine/remoting/commands/remotingcommandutil.cs index d2bfe024d..39b328b8f 100644 --- a/src/System.Management.Automation/engine/remoting/commands/remotingcommandutil.cs +++ b/src/System.Management.Automation/engine/remoting/commands/remotingcommandutil.cs @@ -3,19 +3,11 @@ // using System; -using System.Threading; -using System.Collections.ObjectModel; using System.Management.Automation; -using System.Management.Automation.Remoting; - using System.Management.Automation.Runspaces; -using System.Management.Automation.Host; -using System.IO; -using System.Diagnostics; using Microsoft.Win32; using Dbg = System.Management.Automation.Diagnostics; using System.Management.Automation.Internal; -using System.Management.Automation.Remoting.Client; namespace Microsoft.PowerShell.Commands { diff --git a/src/System.Management.Automation/engine/remoting/commands/removerunspacecommand.cs b/src/System.Management.Automation/engine/remoting/commands/removerunspacecommand.cs index 003f1650c..3f5ec0315 100644 --- a/src/System.Management.Automation/engine/remoting/commands/removerunspacecommand.cs +++ b/src/System.Management.Automation/engine/remoting/commands/removerunspacecommand.cs @@ -3,14 +3,12 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.Threading; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Management.Automation; using System.Management.Automation.Remoting; using System.Management.Automation.Runspaces; -using System.Management.Automation.Host; using System.Diagnostics.CodeAnalysis; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/remoting/commands/runspacerepository.cs b/src/System.Management.Automation/engine/remoting/commands/runspacerepository.cs index eb0a96bc7..ba96a6950 100644 --- a/src/System.Management.Automation/engine/remoting/commands/runspacerepository.cs +++ b/src/System.Management.Automation/engine/remoting/commands/runspacerepository.cs @@ -2,11 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.Generic; -using System.Collections; -using System.Text; -using System.Management.Automation; using System.Management.Automation.Runspaces; diff --git a/src/System.Management.Automation/engine/remoting/common/AsyncObject.cs b/src/System.Management.Automation/engine/remoting/common/AsyncObject.cs index 37755c8bc..420996e4f 100644 --- a/src/System.Management.Automation/engine/remoting/common/AsyncObject.cs +++ b/src/System.Management.Automation/engine/remoting/common/AsyncObject.cs @@ -2,18 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.IO; -using System.Reflection; -using System.Text; using System.Threading; -using System.Management.Automation; -using System.Management.Automation.Host; -using System.Management.Automation.Remoting; -using System.Management.Automation.Internal; using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/common/DispatchTable.cs b/src/System.Management.Automation/engine/remoting/common/DispatchTable.cs index b7e6ac8a6..3dffac596 100644 --- a/src/System.Management.Automation/engine/remoting/common/DispatchTable.cs +++ b/src/System.Management.Automation/engine/remoting/common/DispatchTable.cs @@ -2,18 +2,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.IO; -using System.Reflection; -using System.Text; using System.Threading; -using System.Management.Automation; -using System.Management.Automation.Host; -using System.Management.Automation.Remoting; -using System.Management.Automation.Internal; using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/common/Indexer.cs b/src/System.Management.Automation/engine/remoting/common/Indexer.cs index c4751a784..764058fc1 100644 --- a/src/System.Management.Automation/engine/remoting/common/Indexer.cs +++ b/src/System.Management.Automation/engine/remoting/common/Indexer.cs @@ -2,18 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.IO; -using System.Reflection; -using System.Text; -using System.Threading; -using System.Management.Automation; -using System.Management.Automation.Host; -using System.Management.Automation.Remoting; -using System.Management.Automation.Internal; using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/common/ObjectRef.cs b/src/System.Management.Automation/engine/remoting/common/ObjectRef.cs index b0924a58f..747959061 100644 --- a/src/System.Management.Automation/engine/remoting/common/ObjectRef.cs +++ b/src/System.Management.Automation/engine/remoting/common/ObjectRef.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/common/PSETWTracer.cs b/src/System.Management.Automation/engine/remoting/common/PSETWTracer.cs index 949d59de7..81bd364f6 100644 --- a/src/System.Management.Automation/engine/remoting/common/PSETWTracer.cs +++ b/src/System.Management.Automation/engine/remoting/common/PSETWTracer.cs @@ -2,12 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Internal diff --git a/src/System.Management.Automation/engine/remoting/common/RemoteSessionHyperVSocket.cs b/src/System.Management.Automation/engine/remoting/common/RemoteSessionHyperVSocket.cs index 55fb1248d..7c4013718 100644 --- a/src/System.Management.Automation/engine/remoting/common/RemoteSessionHyperVSocket.cs +++ b/src/System.Management.Automation/engine/remoting/common/RemoteSessionHyperVSocket.cs @@ -3,18 +3,11 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System.Management.Automation.Tracing; -using System.Management.Automation.Remoting.Server; -using System.Globalization; using System.IO; -using System.IO.Pipes; using System.Net; -using System.Net.Security; using System.Net.Sockets; -using System.Runtime.InteropServices; using System.Text; using System.Threading; -using System.Security.AccessControl; -using System.Security.Principal; using Dbg = System.Diagnostics.Debug; #if CORECLR diff --git a/src/System.Management.Automation/engine/remoting/common/RemoteSessionNamedPipe.cs b/src/System.Management.Automation/engine/remoting/common/RemoteSessionNamedPipe.cs index f57805693..9957292a4 100644 --- a/src/System.Management.Automation/engine/remoting/common/RemoteSessionNamedPipe.cs +++ b/src/System.Management.Automation/engine/remoting/common/RemoteSessionNamedPipe.cs @@ -13,7 +13,6 @@ using System.Security.AccessControl; using System.Security.Principal; using System.Runtime.InteropServices; using Microsoft.Win32.SafeHandles; -using Microsoft.PowerShell.Commands.Internal; using System.Diagnostics.CodeAnalysis; using Dbg = System.Diagnostics.Debug; diff --git a/src/System.Management.Automation/engine/remoting/common/RunspaceConnectionInfo.cs b/src/System.Management.Automation/engine/remoting/common/RunspaceConnectionInfo.cs index f878dfc35..72981b7db 100644 --- a/src/System.Management.Automation/engine/remoting/common/RunspaceConnectionInfo.cs +++ b/src/System.Management.Automation/engine/remoting/common/RunspaceConnectionInfo.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System.Collections; using System.Net; using System.Net.Sockets; using System.Diagnostics.CodeAnalysis; diff --git a/src/System.Management.Automation/engine/remoting/common/RunspaceInitInfo.cs b/src/System.Management.Automation/engine/remoting/common/RunspaceInitInfo.cs index 65dcfd2af..56e9da7aa 100644 --- a/src/System.Management.Automation/engine/remoting/common/RunspaceInitInfo.cs +++ b/src/System.Management.Automation/engine/remoting/common/RunspaceInitInfo.cs @@ -2,15 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Threading; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Security; -using System.Management.Automation; -using System.Management.Automation.Runspaces; - using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/common/RunspacePoolStateInfo.cs b/src/System.Management.Automation/engine/remoting/common/RunspacePoolStateInfo.cs index 7923bfec2..b9b346313 100644 --- a/src/System.Management.Automation/engine/remoting/common/RunspacePoolStateInfo.cs +++ b/src/System.Management.Automation/engine/remoting/common/RunspacePoolStateInfo.cs @@ -2,13 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Threading; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Security; -using System.Management.Automation; using System.Management.Automation.Runspaces; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/EncodeAndDecode.cs b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/EncodeAndDecode.cs index 7aa340f27..f9bf9b88d 100644 --- a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/EncodeAndDecode.cs +++ b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/EncodeAndDecode.cs @@ -16,7 +16,6 @@ using Microsoft.PowerShell; using Microsoft.PowerShell.Commands; using Dbg = System.Management.Automation.Diagnostics; using System.Reflection; -using System.Xml.Serialization; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHost.cs b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHost.cs index ae57dab60..78efa0a61 100644 --- a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHost.cs +++ b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHost.cs @@ -5,7 +5,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Globalization; using System.Reflection; using System.Management.Automation.Host; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemotingDataObject.cs b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemotingDataObject.cs index 749f26ba7..d72c51a66 100644 --- a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemotingDataObject.cs +++ b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemotingDataObject.cs @@ -2,19 +2,8 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * --********************************************************************/ -using System; -using System.Security; -using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.Threading; -using System.Xml; -using System.Text; using System.IO; - -using System.Management.Automation.Remoting; -using System.Management.Automation.Internal; using Dbg = System.Management.Automation.Diagnostics; -using Fragmentor = System.Management.Automation.Remoting.Fragmentor; namespace System.Management.Automation.Remoting { diff --git a/src/System.Management.Automation/engine/remoting/common/misc.cs b/src/System.Management.Automation/engine/remoting/common/misc.cs index 6c712a73f..0e47355c9 100644 --- a/src/System.Management.Automation/engine/remoting/common/misc.cs +++ b/src/System.Management.Automation/engine/remoting/common/misc.cs @@ -2,10 +2,6 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * --********************************************************************/ -using System; -using System.Security; -using System.Threading; -using System.Management.Automation; using System.Management.Automation.Remoting; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/remoting/common/remotesession.cs b/src/System.Management.Automation/engine/remoting/common/remotesession.cs index a56729531..399b40734 100644 --- a/src/System.Management.Automation/engine/remoting/common/remotesession.cs +++ b/src/System.Management.Automation/engine/remoting/common/remotesession.cs @@ -2,8 +2,6 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * --********************************************************************/ -using System; -using System.Management.Automation; using System.Management.Automation.Remoting; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/remoting/fanin/BaseTransportManager.cs b/src/System.Management.Automation/engine/remoting/fanin/BaseTransportManager.cs index a77283038..105aef083 100644 --- a/src/System.Management.Automation/engine/remoting/fanin/BaseTransportManager.cs +++ b/src/System.Management.Automation/engine/remoting/fanin/BaseTransportManager.cs @@ -7,17 +7,13 @@ * */ -using System; using System.Management.Automation.Tracing; using System.Text; using System.IO; using System.Xml; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Globalization; using System.Threading; -using System.Runtime.InteropServices; -using System.Diagnostics.CodeAnalysis; using System.Management.Automation.Internal; #if !CORECLR using System.Security.Principal; @@ -25,14 +21,10 @@ using System.Security.Principal; // Don't expose the System.Management.Automation namespace here. This is transport layer // and it shouldn't know anything about the engine. -using System.Management.Automation.Remoting; using System.Management.Automation.Remoting.Client; // TODO: this seems ugly...Remoting datatypes should be in remoting namespace using System.Management.Automation.Runspaces.Internal; using PSRemotingCryptoHelper = System.Management.Automation.Internal.PSRemotingCryptoHelper; -using PowerShell = System.Management.Automation.PowerShell; -using RunspacePool = System.Management.Automation.Runspaces.RunspacePool; -using Runspace = System.Management.Automation.Runspaces.Runspace; using RunspaceConnectionInfo = System.Management.Automation.Runspaces.RunspaceConnectionInfo; using TypeTable = System.Management.Automation.Runspaces.TypeTable; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/remoting/fanin/InitialSessionStateProvider.cs b/src/System.Management.Automation/engine/remoting/fanin/InitialSessionStateProvider.cs index c2ec4452b..21c7261ca 100644 --- a/src/System.Management.Automation/engine/remoting/fanin/InitialSessionStateProvider.cs +++ b/src/System.Management.Automation/engine/remoting/fanin/InitialSessionStateProvider.cs @@ -17,7 +17,6 @@ using System.Management.Automation.Internal; using System.Management.Automation.Runspaces; using Dbg = System.Management.Automation.Diagnostics; using System.Collections; -using System; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/fanin/PriorityCollection.cs b/src/System.Management.Automation/engine/remoting/fanin/PriorityCollection.cs index bc766df7c..bb2fb20e9 100644 --- a/src/System.Management.Automation/engine/remoting/fanin/PriorityCollection.cs +++ b/src/System.Management.Automation/engine/remoting/fanin/PriorityCollection.cs @@ -2,13 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * --********************************************************************/ -using System; using System.IO; -using System.Collections; -using System.Collections.ObjectModel; -using System.Globalization; - -using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Tracing; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/remoting/fanin/WSManPlugin.cs b/src/System.Management.Automation/engine/remoting/fanin/WSManPlugin.cs index 137ae4bce..2cd96147e 100644 --- a/src/System.Management.Automation/engine/remoting/fanin/WSManPlugin.cs +++ b/src/System.Management.Automation/engine/remoting/fanin/WSManPlugin.cs @@ -7,18 +7,13 @@ // host powershell in a WSMan service. // ---------------------------------------------------------------------- -using System; using System.Threading; using System.Globalization; using System.Runtime.InteropServices; using System.Security.Principal; -using System.IO; using System.Collections.Generic; using Microsoft.Win32.SafeHandles; - -using System.Management.Automation; using System.Management.Automation.Internal; -using System.Management.Automation.Remoting; using System.Management.Automation.Remoting.Client; using System.Management.Automation.Remoting.Server; using System.Management.Automation.Remoting.WSMan; diff --git a/src/System.Management.Automation/engine/remoting/fanin/WSManPluginFacade.cs b/src/System.Management.Automation/engine/remoting/fanin/WSManPluginFacade.cs index fb02e1fce..b8617ba38 100644 --- a/src/System.Management.Automation/engine/remoting/fanin/WSManPluginFacade.cs +++ b/src/System.Management.Automation/engine/remoting/fanin/WSManPluginFacade.cs @@ -7,22 +7,10 @@ // host powershell in a WSMan service. // ---------------------------------------------------------------------- -using System; using System.Threading; -using System.Globalization; using System.Runtime.InteropServices; -using System.Security.Principal; -using System.IO; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; - -using System.Management.Automation; using System.Management.Automation.Internal; -using System.Management.Automation.Remoting; -using System.Management.Automation.Remoting.Client; -using System.Management.Automation.Remoting.Server; -using System.Management.Automation.Remoting.WSMan; -using System.Management.Automation.Tracing; namespace System.Management.Automation.Remoting { diff --git a/src/System.Management.Automation/engine/remoting/fanin/WSManPluginShellSession.cs b/src/System.Management.Automation/engine/remoting/fanin/WSManPluginShellSession.cs index 38066ee2a..6cb7216d0 100644 --- a/src/System.Management.Automation/engine/remoting/fanin/WSManPluginShellSession.cs +++ b/src/System.Management.Automation/engine/remoting/fanin/WSManPluginShellSession.cs @@ -7,17 +7,11 @@ // host powershell in a WSMan service. // ---------------------------------------------------------------------- -using System; using System.Collections.ObjectModel; using System.Collections.Generic; using System.Runtime.InteropServices; -using System.Text; -using System.IO; using Microsoft.Win32.SafeHandles; - -using System.Management.Automation; using System.Management.Automation.Internal; -using System.Management.Automation.Remoting; using System.Management.Automation.Remoting.Client; using System.Management.Automation.Remoting.Server; using System.Management.Automation.Tracing; diff --git a/src/System.Management.Automation/engine/remoting/fanin/WSManTransportManager.cs b/src/System.Management.Automation/engine/remoting/fanin/WSManTransportManager.cs index 1b5f27c9e..427be9de0 100644 --- a/src/System.Management.Automation/engine/remoting/fanin/WSManTransportManager.cs +++ b/src/System.Management.Automation/engine/remoting/fanin/WSManTransportManager.cs @@ -8,13 +8,10 @@ * */ -using System; using System.Management.Automation.Tracing; -using System.Text; using System.IO; using System.Xml; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Globalization; using System.Threading; using System.Runtime.InteropServices; @@ -26,8 +23,6 @@ using System.Security.Principal; // Don't expose the System.Management.Automation namespace here. This is transport layer // and it shouldn't know anything about the engine. -using System.Management.Automation.Remoting; -using System.Management.Automation.Remoting.Client; using System.Management.Automation.Remoting.Server; // TODO: this seems ugly...Remoting datatypes should be in remoting namespace using System.Management.Automation.Runspaces.Internal; @@ -36,10 +31,6 @@ using PSRemotingCryptoHelper = System.Management.Automation.Internal.PSRemotingC using WSManConnectionInfo = System.Management.Automation.Runspaces.WSManConnectionInfo; using RunspaceConnectionInfo = System.Management.Automation.Runspaces.RunspaceConnectionInfo; using AuthenticationMechanism = System.Management.Automation.Runspaces.AuthenticationMechanism; -using PowerShell = System.Management.Automation.PowerShell; -using RunspacePool = System.Management.Automation.Runspaces.RunspacePool; -using Runspace = System.Management.Automation.Runspaces.Runspace; -using TypeTable = System.Management.Automation.Runspaces.TypeTable; using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting.Client diff --git a/src/System.Management.Automation/engine/remoting/host/RemoteHostMethodInfo.cs b/src/System.Management.Automation/engine/remoting/host/RemoteHostMethodInfo.cs index 6149b6457..fffadf7a9 100644 --- a/src/System.Management.Automation/engine/remoting/host/RemoteHostMethodInfo.cs +++ b/src/System.Management.Automation/engine/remoting/host/RemoteHostMethodInfo.cs @@ -2,18 +2,9 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.IO; -using System.Reflection; -using System.Text; -using System.Threading; -using System.Management.Automation; using System.Management.Automation.Host; -using System.Management.Automation.Remoting; -using System.Management.Automation.Internal; using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/server/ServerMethodExecutor.cs b/src/System.Management.Automation/engine/remoting/server/ServerMethodExecutor.cs index a5be9a2f5..e7b24037c 100644 --- a/src/System.Management.Automation/engine/remoting/server/ServerMethodExecutor.cs +++ b/src/System.Management.Automation/engine/remoting/server/ServerMethodExecutor.cs @@ -2,18 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.IO; -using System.Reflection; -using System.Text; -using System.Threading; -using System.Management.Automation; -using System.Management.Automation.Host; -using System.Management.Automation.Remoting; -using System.Management.Automation.Internal; using System.Management.Automation.Remoting.Server; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/remoting/server/ServerRemoteHost.cs b/src/System.Management.Automation/engine/remoting/server/ServerRemoteHost.cs index 64b26f9d3..44e5451f0 100644 --- a/src/System.Management.Automation/engine/remoting/server/ServerRemoteHost.cs +++ b/src/System.Management.Automation/engine/remoting/server/ServerRemoteHost.cs @@ -2,22 +2,10 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.IO; -using System.Reflection; -using System.Text; -using System.Threading; -using System.Management.Automation; using System.Management.Automation.Host; -using System.Management.Automation.Remoting; -using System.Management.Automation.Internal; using System.Management.Automation.Remoting.Server; using System.Management.Automation.Runspaces; using System.Globalization; -using System.Runtime.InteropServices; using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/server/ServerRemoteHostRawUserInterface.cs b/src/System.Management.Automation/engine/remoting/server/ServerRemoteHostRawUserInterface.cs index 16fb00dfe..a6cfc7b11 100644 --- a/src/System.Management.Automation/engine/remoting/server/ServerRemoteHostRawUserInterface.cs +++ b/src/System.Management.Automation/engine/remoting/server/ServerRemoteHostRawUserInterface.cs @@ -2,18 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.IO; -using System.Reflection; -using System.Text; -using System.Threading; -using System.Management.Automation; using System.Management.Automation.Host; -using System.Management.Automation.Remoting; -using System.Management.Automation.Internal; using Dbg = System.Management.Automation.Diagnostics; // Stops compiler from warning about unknown warnings #pragma warning disable 1634, 1691 diff --git a/src/System.Management.Automation/engine/remoting/server/ServerRemoteHostUserInterface.cs b/src/System.Management.Automation/engine/remoting/server/ServerRemoteHostUserInterface.cs index a448ae128..0f3c54052 100644 --- a/src/System.Management.Automation/engine/remoting/server/ServerRemoteHostUserInterface.cs +++ b/src/System.Management.Automation/engine/remoting/server/ServerRemoteHostUserInterface.cs @@ -2,19 +2,10 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Globalization; -using System.IO; -using System.Reflection; -using System.Text; -using System.Threading; -using System.Management.Automation; using System.Management.Automation.Host; -using System.Management.Automation.Remoting; -using System.Management.Automation.Internal; using System.Security; using Dbg = System.Management.Automation.Diagnostics; using InternalHostUserInterface = System.Management.Automation.Internal.Host.InternalHostUserInterface; diff --git a/src/System.Management.Automation/engine/remoting/server/ServerRemotingProtocol2.cs b/src/System.Management.Automation/engine/remoting/server/ServerRemotingProtocol2.cs index b386c8ad4..d1ab8d705 100644 --- a/src/System.Management.Automation/engine/remoting/server/ServerRemotingProtocol2.cs +++ b/src/System.Management.Automation/engine/remoting/server/ServerRemotingProtocol2.cs @@ -2,14 +2,8 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * --********************************************************************/ -using System; -using System.Security; -using System.Collections.ObjectModel; using System.Collections.Generic; -using System.Threading; -using System.Management.Automation; using System.Management.Automation.Remoting; -using System.Management.Automation.Internal; using System.Management.Automation.Runspaces; using System.Management.Automation.Remoting.Server; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/remoting/server/ServerRunspacePoolDriver.cs b/src/System.Management.Automation/engine/remoting/server/ServerRunspacePoolDriver.cs index c6c7397fc..bcdf3c5aa 100644 --- a/src/System.Management.Automation/engine/remoting/server/ServerRunspacePoolDriver.cs +++ b/src/System.Management.Automation/engine/remoting/server/ServerRunspacePoolDriver.cs @@ -14,10 +14,8 @@ using System.Management.Automation.Remoting; using System.Management.Automation.Remoting.Server; using Dbg = System.Management.Automation.Diagnostics; using System.Threading; -using Microsoft.PowerShell; using System.Management.Automation.Security; using System.Diagnostics; -using System.Collections.ObjectModel; using System.Security.Principal; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/remoting/server/ServerSteppablePipelineDriver.cs b/src/System.Management.Automation/engine/remoting/server/ServerSteppablePipelineDriver.cs index 68fd7e953..609c2ecf3 100644 --- a/src/System.Management.Automation/engine/remoting/server/ServerSteppablePipelineDriver.cs +++ b/src/System.Management.Automation/engine/remoting/server/ServerSteppablePipelineDriver.cs @@ -2,15 +2,11 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * --********************************************************************/ -using System; using System.Threading; using System.Collections.Generic; -using System.Management.Automation.Internal; using System.Management.Automation.Runspaces; using System.Management.Automation.Remoting; using System.Management.Automation.Host; -using System.Collections.ObjectModel; -using System.Diagnostics.CodeAnalysis; using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/remoting/server/ServerSteppablePipelineSubscriber.cs b/src/System.Management.Automation/engine/remoting/server/ServerSteppablePipelineSubscriber.cs index 4adbd64f2..5b81b9856 100644 --- a/src/System.Management.Automation/engine/remoting/server/ServerSteppablePipelineSubscriber.cs +++ b/src/System.Management.Automation/engine/remoting/server/ServerSteppablePipelineSubscriber.cs @@ -2,16 +2,6 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * --********************************************************************/ -using System; -using System.Threading; -using System.Collections.Generic; -using System.Management.Automation.Internal; -using System.Management.Automation.Runspaces; -using System.Management.Automation.Remoting; -using System.Management.Automation.Host; -using System.Collections.ObjectModel; -using System.Diagnostics.CodeAnalysis; - using Dbg = System.Management.Automation.Diagnostics; // Warning: Events StartSteppablePipeline and RunProcessRecord are never used diff --git a/src/System.Management.Automation/engine/remoting/server/WSManChannelEvents.cs b/src/System.Management.Automation/engine/remoting/server/WSManChannelEvents.cs index 60d3a3b19..85e162069 100644 --- a/src/System.Management.Automation/engine/remoting/server/WSManChannelEvents.cs +++ b/src/System.Management.Automation/engine/remoting/server/WSManChannelEvents.cs @@ -2,8 +2,6 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * --********************************************************************/ -using System; - namespace System.Management.Automation.Remoting.WSMan { /// diff --git a/src/System.Management.Automation/engine/remoting/server/serverremotesession.cs b/src/System.Management.Automation/engine/remoting/server/serverremotesession.cs index 307d333c4..1f2dab6e5 100644 --- a/src/System.Management.Automation/engine/remoting/server/serverremotesession.cs +++ b/src/System.Management.Automation/engine/remoting/server/serverremotesession.cs @@ -2,18 +2,10 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * --********************************************************************/ -using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.Globalization; using System.Threading; -using System.Management.Automation; using System.Management.Automation.Runspaces; using System.Management.Automation.Internal; using System.IO; -using System.Runtime.InteropServices; -using Microsoft.Win32.SafeHandles; - -using System.Management.Automation.Remoting; using System.Management.Automation.Remoting.Server; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/remoting/server/serverremotesessionstatemachine.cs b/src/System.Management.Automation/engine/remoting/server/serverremotesessionstatemachine.cs index 2c625d2e7..c63bacb36 100644 --- a/src/System.Management.Automation/engine/remoting/server/serverremotesessionstatemachine.cs +++ b/src/System.Management.Automation/engine/remoting/server/serverremotesessionstatemachine.cs @@ -4,9 +4,6 @@ using System.Threading; using System.Collections.Generic; -using System.Management.Automation; -using System.Management.Automation.Runspaces; - using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/server/serverremotingprotocol.cs b/src/System.Management.Automation/engine/remoting/server/serverremotingprotocol.cs index a7b8ee567..675181f26 100644 --- a/src/System.Management.Automation/engine/remoting/server/serverremotingprotocol.cs +++ b/src/System.Management.Automation/engine/remoting/server/serverremotingprotocol.cs @@ -2,10 +2,6 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * --********************************************************************/ -using System.Threading; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Management.Automation; using Dbg = System.Management.Automation.Diagnostics; using System.Management.Automation.Remoting.Server; diff --git a/src/System.Management.Automation/engine/remoting/server/serverremotingprotocolimplementation.cs b/src/System.Management.Automation/engine/remoting/server/serverremotingprotocolimplementation.cs index cdbe42f09..5be1acfa0 100644 --- a/src/System.Management.Automation/engine/remoting/server/serverremotingprotocolimplementation.cs +++ b/src/System.Management.Automation/engine/remoting/server/serverremotingprotocolimplementation.cs @@ -2,11 +2,6 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * --********************************************************************/ -using System.Security; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Management.Automation; -using System.Management.Automation.Internal; using System.Management.Automation.Remoting.Server; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/runtime/CompiledScriptBlock.cs b/src/System.Management.Automation/engine/runtime/CompiledScriptBlock.cs index 2ba238358..ab40e8cb8 100644 --- a/src/System.Management.Automation/engine/runtime/CompiledScriptBlock.cs +++ b/src/System.Management.Automation/engine/runtime/CompiledScriptBlock.cs @@ -6,21 +6,15 @@ using System.Collections; using System.Collections.Concurrent; using System.Collections.Generic; using System.Diagnostics; -using System.Dynamic; using System.Linq; -using System.Linq.Expressions; using System.Management.Automation.Internal; -using System.Management.Automation.Interpreter; using System.Management.Automation.Language; using System.Management.Automation.Runspaces; using System.Management.Automation.Tracing; using System.Security.Cryptography.X509Certificates; using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.Serialization; using System.Text; -using Microsoft.Win32; -using System.Threading; using System.Threading.Tasks; using Microsoft.PowerShell.Telemetry.Internal; diff --git a/src/System.Management.Automation/engine/runtime/MutableTuple.cs b/src/System.Management.Automation/engine/runtime/MutableTuple.cs index da85a0fa1..730cde195 100644 --- a/src/System.Management.Automation/engine/runtime/MutableTuple.cs +++ b/src/System.Management.Automation/engine/runtime/MutableTuple.cs @@ -17,8 +17,6 @@ using System.Collections; using System.Globalization; using System.Linq; using System.Linq.Expressions; - -using System; using System.CodeDom.Compiler; using System.Collections.Concurrent; using System.Collections.Generic; diff --git a/src/System.Management.Automation/engine/runtime/Operations/NumericOps.cs b/src/System.Management.Automation/engine/runtime/Operations/NumericOps.cs index 81db2a428..89349361e 100644 --- a/src/System.Management.Automation/engine/runtime/Operations/NumericOps.cs +++ b/src/System.Management.Automation/engine/runtime/Operations/NumericOps.cs @@ -5,8 +5,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. // ReSharper disable UnusedMember.Global // ReSharper disable RedundantCast -using System.Globalization; - namespace System.Management.Automation { internal static class Boxed diff --git a/src/System.Management.Automation/engine/runtime/ScriptBlockToPowerShell.cs b/src/System.Management.Automation/engine/runtime/ScriptBlockToPowerShell.cs index 545b3b80c..4cfb113f9 100644 --- a/src/System.Management.Automation/engine/runtime/ScriptBlockToPowerShell.cs +++ b/src/System.Management.Automation/engine/runtime/ScriptBlockToPowerShell.cs @@ -8,7 +8,6 @@ using System.Globalization; using System.Linq; using System.Management.Automation.Language; using System.Management.Automation.Runspaces; -using System.Management.Automation.Internal; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/scriptparameterbinder.cs b/src/System.Management.Automation/engine/scriptparameterbinder.cs index 0fd0f4ef3..2016397b2 100644 --- a/src/System.Management.Automation/engine/scriptparameterbinder.cs +++ b/src/System.Management.Automation/engine/scriptparameterbinder.cs @@ -2,10 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections; -using System.Linq; -using System.Linq.Expressions; using System.Management.Automation.Internal; using System.Management.Automation.Language; using System.Runtime.CompilerServices; diff --git a/src/System.Management.Automation/engine/scriptparameterbindercontroller.cs b/src/System.Management.Automation/engine/scriptparameterbindercontroller.cs index 2842eba48..68c838fc6 100644 --- a/src/System.Management.Automation/engine/scriptparameterbindercontroller.cs +++ b/src/System.Management.Automation/engine/scriptparameterbindercontroller.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Management.Automation.Internal; diff --git a/src/System.Management.Automation/engine/serialization.cs b/src/System.Management.Automation/engine/serialization.cs index cbfe69b26..23367c6be 100644 --- a/src/System.Management.Automation/engine/serialization.cs +++ b/src/System.Management.Automation/engine/serialization.cs @@ -21,7 +21,6 @@ using System.Text; using System.Xml; using Microsoft.Management.Infrastructure; using Microsoft.Management.Infrastructure.Serialization; -using Microsoft.PowerShell; using Microsoft.PowerShell.Commands; using Dbg = System.Management.Automation.Diagnostics; using System.Management.Automation.Remoting; diff --git a/src/System.Management.Automation/help/DscResourceHelpProvider.cs b/src/System.Management.Automation/help/DscResourceHelpProvider.cs index 6b959a8e9..f9f335da9 100644 --- a/src/System.Management.Automation/help/DscResourceHelpProvider.cs +++ b/src/System.Management.Automation/help/DscResourceHelpProvider.cs @@ -6,7 +6,6 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; -using System.Globalization; using System.IO; using System.Xml; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/help/PSClassHelpProvider.cs b/src/System.Management.Automation/help/PSClassHelpProvider.cs index e87810a07..69100c126 100644 --- a/src/System.Management.Automation/help/PSClassHelpProvider.cs +++ b/src/System.Management.Automation/help/PSClassHelpProvider.cs @@ -6,7 +6,6 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; -using System.Globalization; using System.IO; using System.Xml; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/logging/LogContext.cs b/src/System.Management.Automation/logging/LogContext.cs index 61a603330..2cd9aed12 100644 --- a/src/System.Management.Automation/logging/LogContext.cs +++ b/src/System.Management.Automation/logging/LogContext.cs @@ -2,10 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Management.Automation; -using System.Collections.Generic; - namespace System.Management.Automation { /// diff --git a/src/System.Management.Automation/logging/LogProvider.cs b/src/System.Management.Automation/logging/LogProvider.cs index 47fe2770e..a9f877889 100644 --- a/src/System.Management.Automation/logging/LogProvider.cs +++ b/src/System.Management.Automation/logging/LogProvider.cs @@ -2,11 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Management.Automation; using System.Collections.Generic; -using System.Reflection; -using System.Management.Automation.Runspaces; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/logging/eventlog/EventLogLogProvider.cs b/src/System.Management.Automation/logging/eventlog/EventLogLogProvider.cs index f0fb1495e..58a14f5ef 100644 --- a/src/System.Management.Automation/logging/eventlog/EventLogLogProvider.cs +++ b/src/System.Management.Automation/logging/eventlog/EventLogLogProvider.cs @@ -2,15 +2,10 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Management.Automation; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Resources; -using Microsoft.Win32; -using System.IO; -using System.Reflection; using System.ComponentModel; using System.Globalization; using System.Text; diff --git a/src/System.Management.Automation/minishell/api/FormatAndTypeDataHelper.cs b/src/System.Management.Automation/minishell/api/FormatAndTypeDataHelper.cs index 0f3fa0a78..62f26cd91 100644 --- a/src/System.Management.Automation/minishell/api/FormatAndTypeDataHelper.cs +++ b/src/System.Management.Automation/minishell/api/FormatAndTypeDataHelper.cs @@ -8,7 +8,6 @@ using System.Collections.ObjectModel; using System.Reflection; using System.Text; using System.Management.Automation.Host; -using System.Collections; using System.Collections.Concurrent; using System.Management.Automation.Internal; diff --git a/src/System.Management.Automation/minishell/api/RunspaceConfigurationEntry.cs b/src/System.Management.Automation/minishell/api/RunspaceConfigurationEntry.cs index 78a5e6b4a..cef059895 100644 --- a/src/System.Management.Automation/minishell/api/RunspaceConfigurationEntry.cs +++ b/src/System.Management.Automation/minishell/api/RunspaceConfigurationEntry.cs @@ -5,18 +5,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. #pragma warning disable 1634, 1691 #pragma warning disable 56506 -using System; -using System.IO; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Resources; -using System.Globalization; -using System.Management.Automation; -using System.Xml; -using System.Reflection; -using System.Threading; - namespace System.Management.Automation.Runspaces { /// diff --git a/src/System.Management.Automation/minishell/api/RunspaceConfigurationTypeAttribute.cs b/src/System.Management.Automation/minishell/api/RunspaceConfigurationTypeAttribute.cs index 34cb300e0..1859a3ad8 100644 --- a/src/System.Management.Automation/minishell/api/RunspaceConfigurationTypeAttribute.cs +++ b/src/System.Management.Automation/minishell/api/RunspaceConfigurationTypeAttribute.cs @@ -2,18 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.IO; -using System.Collections; -using System.Collections.Generic; -using System.Resources; -using System.Globalization; -using System.Management.Automation; -using System.Xml; -using System.Reflection; -using System.Threading; -using System.Management.Automation.Runspaces; - namespace System.Management.Automation.Runspaces { /// diff --git a/src/System.Management.Automation/namespaces/AliasProvider.cs b/src/System.Management.Automation/namespaces/AliasProvider.cs index 6b79f7246..6223ddbc9 100644 --- a/src/System.Management.Automation/namespaces/AliasProvider.cs +++ b/src/System.Management.Automation/namespaces/AliasProvider.cs @@ -6,11 +6,9 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System; using Dbg = System.Management.Automation; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Management.Automation; using System.Management.Automation.Provider; -using System.Management.Automation.Internal; namespace Microsoft.PowerShell.Commands { diff --git a/src/System.Management.Automation/namespaces/ContainerProviderBase.cs b/src/System.Management.Automation/namespaces/ContainerProviderBase.cs index 402fba457..e6af55ae5 100644 --- a/src/System.Management.Automation/namespaces/ContainerProviderBase.cs +++ b/src/System.Management.Automation/namespaces/ContainerProviderBase.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Diagnostics.CodeAnalysis; using System.Management.Automation.Internal; diff --git a/src/System.Management.Automation/namespaces/CoreCommandContext.cs b/src/System.Management.Automation/namespaces/CoreCommandContext.cs index 93038ee32..1dc5cae1d 100644 --- a/src/System.Management.Automation/namespaces/CoreCommandContext.cs +++ b/src/System.Management.Automation/namespaces/CoreCommandContext.cs @@ -2,15 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Collections.Specialized; -using System.Globalization; -using System.Management.Automation; -using System.Management.Automation.Host; -using System.Text; using Dbg = System.Management.Automation; namespace System.Management.Automation diff --git a/src/System.Management.Automation/namespaces/DriveProviderBase.cs b/src/System.Management.Automation/namespaces/DriveProviderBase.cs index 88dcb1cee..c13884693 100644 --- a/src/System.Management.Automation/namespaces/DriveProviderBase.cs +++ b/src/System.Management.Automation/namespaces/DriveProviderBase.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.ObjectModel; using Dbg = System.Management.Automation; using System.Management.Automation.Internal; diff --git a/src/System.Management.Automation/namespaces/FileSystemProvider.cs b/src/System.Management.Automation/namespaces/FileSystemProvider.cs index 1f87e0c09..d25335434 100644 --- a/src/System.Management.Automation/namespaces/FileSystemProvider.cs +++ b/src/System.Management.Automation/namespaces/FileSystemProvider.cs @@ -20,7 +20,6 @@ using System.Text; using System.Xml; using System.Xml.XPath; using Microsoft.Win32.SafeHandles; -using Microsoft.PowerShell.Commands; using Dbg = System.Management.Automation; using System.Runtime.InteropServices; using System.Management.Automation.Runspaces; diff --git a/src/System.Management.Automation/namespaces/FunctionProvider.cs b/src/System.Management.Automation/namespaces/FunctionProvider.cs index 0e7fbefb6..c8391f618 100644 --- a/src/System.Management.Automation/namespaces/FunctionProvider.cs +++ b/src/System.Management.Automation/namespaces/FunctionProvider.cs @@ -6,7 +6,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System; using Dbg = System.Management.Automation; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Management.Automation; using System.Management.Automation.Provider; diff --git a/src/System.Management.Automation/namespaces/IContentProvider.cs b/src/System.Management.Automation/namespaces/IContentProvider.cs index 1cf6423c1..4e11598f6 100644 --- a/src/System.Management.Automation/namespaces/IContentProvider.cs +++ b/src/System.Management.Automation/namespaces/IContentProvider.cs @@ -2,8 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; - namespace System.Management.Automation.Provider { #region IContentCmdletProvider diff --git a/src/System.Management.Automation/namespaces/IContentReader.cs b/src/System.Management.Automation/namespaces/IContentReader.cs index d9993f6e2..2d3440c12 100644 --- a/src/System.Management.Automation/namespaces/IContentReader.cs +++ b/src/System.Management.Automation/namespaces/IContentReader.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections; using System.IO; diff --git a/src/System.Management.Automation/namespaces/IContentWriter.cs b/src/System.Management.Automation/namespaces/IContentWriter.cs index cb512ef95..6b1a0a984 100644 --- a/src/System.Management.Automation/namespaces/IContentWriter.cs +++ b/src/System.Management.Automation/namespaces/IContentWriter.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections; using System.IO; diff --git a/src/System.Management.Automation/namespaces/IDynamicPropertyProvider.cs b/src/System.Management.Automation/namespaces/IDynamicPropertyProvider.cs index 427e5850b..e85988c8d 100644 --- a/src/System.Management.Automation/namespaces/IDynamicPropertyProvider.cs +++ b/src/System.Management.Automation/namespaces/IDynamicPropertyProvider.cs @@ -2,8 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; - namespace System.Management.Automation.Provider { #region IDynamicPropertyCmdletProvider diff --git a/src/System.Management.Automation/namespaces/IPropertiesProvider.cs b/src/System.Management.Automation/namespaces/IPropertiesProvider.cs index 6f95e873d..60d922026 100644 --- a/src/System.Management.Automation/namespaces/IPropertiesProvider.cs +++ b/src/System.Management.Automation/namespaces/IPropertiesProvider.cs @@ -2,8 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections.Generic; using System.Collections.ObjectModel; namespace System.Management.Automation.Provider diff --git a/src/System.Management.Automation/namespaces/ItemProviderBase.cs b/src/System.Management.Automation/namespaces/ItemProviderBase.cs index f3078aecb..25401c48c 100644 --- a/src/System.Management.Automation/namespaces/ItemProviderBase.cs +++ b/src/System.Management.Automation/namespaces/ItemProviderBase.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Management.Automation.Internal; namespace System.Management.Automation.Provider diff --git a/src/System.Management.Automation/namespaces/LocationGlobber.cs b/src/System.Management.Automation/namespaces/LocationGlobber.cs index 523a85170..6d9665a53 100644 --- a/src/System.Management.Automation/namespaces/LocationGlobber.cs +++ b/src/System.Management.Automation/namespaces/LocationGlobber.cs @@ -2,12 +2,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Collections.Specialized; -using System.IO; -using System.Management.Automation; using System.Management.Automation.Provider; using System.Text; using Dbg = System.Management.Automation; diff --git a/src/System.Management.Automation/namespaces/NavigationProviderBase.cs b/src/System.Management.Automation/namespaces/NavigationProviderBase.cs index a4ce0ab1f..1e2531932 100644 --- a/src/System.Management.Automation/namespaces/NavigationProviderBase.cs +++ b/src/System.Management.Automation/namespaces/NavigationProviderBase.cs @@ -2,9 +2,7 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Management.Automation.Internal; using System.Text; diff --git a/src/System.Management.Automation/namespaces/PathInfo.cs b/src/System.Management.Automation/namespaces/PathInfo.cs index cae86e99c..50e3867e1 100644 --- a/src/System.Management.Automation/namespaces/PathInfo.cs +++ b/src/System.Management.Automation/namespaces/PathInfo.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using Dbg = System.Management.Automation; namespace System.Management.Automation diff --git a/src/System.Management.Automation/namespaces/ProviderDeclarationAttribute.cs b/src/System.Management.Automation/namespaces/ProviderDeclarationAttribute.cs index 1934aa2d5..5fd27c8ed 100644 --- a/src/System.Management.Automation/namespaces/ProviderDeclarationAttribute.cs +++ b/src/System.Management.Automation/namespaces/ProviderDeclarationAttribute.cs @@ -2,9 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; - - namespace System.Management.Automation.Provider { /// diff --git a/src/System.Management.Automation/namespaces/StackInfo.cs b/src/System.Management.Automation/namespaces/StackInfo.cs index 4b53874cf..210c33a44 100644 --- a/src/System.Management.Automation/namespaces/StackInfo.cs +++ b/src/System.Management.Automation/namespaces/StackInfo.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.Generic; namespace System.Management.Automation diff --git a/src/System.Management.Automation/namespaces/TransactedRegistry.cs b/src/System.Management.Automation/namespaces/TransactedRegistry.cs index 6aaeab765..641ead327 100644 --- a/src/System.Management.Automation/namespaces/TransactedRegistry.cs +++ b/src/System.Management.Automation/namespaces/TransactedRegistry.cs @@ -9,13 +9,9 @@ using BCLDebug = System.Diagnostics.Debug; namespace Microsoft.PowerShell.Commands.Internal { - using System; using System.Runtime.InteropServices; using System.Runtime.Versioning; - using Microsoft.Win32; - using System.Management.Automation; using System.Diagnostics.CodeAnalysis; - using System.Transactions; /** diff --git a/src/System.Management.Automation/namespaces/TransactedRegistryKey.cs b/src/System.Management.Automation/namespaces/TransactedRegistryKey.cs index e9a8f1e37..9ced51e9d 100644 --- a/src/System.Management.Automation/namespaces/TransactedRegistryKey.cs +++ b/src/System.Management.Automation/namespaces/TransactedRegistryKey.cs @@ -52,28 +52,21 @@ using BCLDebug = System.Diagnostics.Debug; -using Win32Native = Microsoft.PowerShell.Commands.Internal.Win32Native; namespace Microsoft.PowerShell.Commands.Internal { using System; - using System.Collections; using System.Collections.Generic; using System.Security; using System.Security.AccessControl; - using System.Security.Principal; using System.Security.Permissions; using System.Text; - using System.Threading; using System.IO; - using System.Runtime.Remoting; using System.Runtime.InteropServices; - using Microsoft.Win32.SafeHandles; using Microsoft.Win32; using System.Runtime.Versioning; using System.Globalization; using System.Transactions; - using System.Management.Automation; using System.Diagnostics.CodeAnalysis; diff --git a/src/System.Management.Automation/namespaces/TransactedRegistrySecurity.cs b/src/System.Management.Automation/namespaces/TransactedRegistrySecurity.cs index 6e28a54e8..1f837baaa 100644 --- a/src/System.Management.Automation/namespaces/TransactedRegistrySecurity.cs +++ b/src/System.Management.Automation/namespaces/TransactedRegistrySecurity.cs @@ -14,15 +14,11 @@ ===========================================================*/ using System; -using System.Collections; using System.Security.Permissions; using System.Security.Principal; -using Microsoft.Win32; -using Microsoft.Win32.SafeHandles; using System.Runtime.InteropServices; using System.IO; using System.Security.AccessControl; -using System.Management.Automation; using System.Diagnostics.CodeAnalysis; namespace Microsoft.PowerShell.Commands.Internal diff --git a/src/System.Management.Automation/namespaces/VariableProvider.cs b/src/System.Management.Automation/namespaces/VariableProvider.cs index 88614bdb7..51d74cc64 100644 --- a/src/System.Management.Automation/namespaces/VariableProvider.cs +++ b/src/System.Management.Automation/namespaces/VariableProvider.cs @@ -6,7 +6,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System; using Dbg = System.Management.Automation; using System.Collections; -using System.Collections.Generic; using System.Collections.ObjectModel; using System.Management.Automation; using System.Management.Automation.Provider; diff --git a/src/System.Management.Automation/security/Authenticode.cs b/src/System.Management.Automation/security/Authenticode.cs index ac3a0e850..35321a54f 100644 --- a/src/System.Management.Automation/security/Authenticode.cs +++ b/src/System.Management.Automation/security/Authenticode.cs @@ -8,15 +8,9 @@ Copyright (c) Microsoft Corporation. All rights reserved. #pragma warning disable 56523 using Dbg = System.Management.Automation; -using System; -using System.Collections.Generic; -using System.Collections; -using System.ComponentModel; using System.IO; using System.Management.Automation.Internal; -using System.Management.Automation.Provider; using System.Management.Automation.Security; -using System.Management.Automation; using System.Runtime.InteropServices; using System.Security.Cryptography.X509Certificates; #if CORECLR diff --git a/src/System.Management.Automation/security/MshSignature.cs b/src/System.Management.Automation/security/MshSignature.cs index 4258dd3c5..e97df1391 100644 --- a/src/System.Management.Automation/security/MshSignature.cs +++ b/src/System.Management.Automation/security/MshSignature.cs @@ -7,8 +7,6 @@ using Dbg = System.Management.Automation; using System.Management.Automation.Internal; using System.Security.Cryptography.X509Certificates; using System.ComponentModel; -using System.IO; - using DWORD = System.UInt32; diff --git a/src/System.Management.Automation/security/nativeMethods.cs b/src/System.Management.Automation/security/nativeMethods.cs index 3d423420d..abdc0cd39 100644 --- a/src/System.Management.Automation/security/nativeMethods.cs +++ b/src/System.Management.Automation/security/nativeMethods.cs @@ -10,12 +10,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System.Runtime.InteropServices; using System.Security.Cryptography.X509Certificates; using System.Management.Automation.Internal; -using Microsoft.Win32.SafeHandles; - using DWORD = System.UInt32; using BOOL = System.UInt32; -using FILETIME = System.Runtime.InteropServices.ComTypes.FILETIME; - #if CORECLR // Use stub for ReliabilityContractAttribute using Microsoft.PowerShell.CoreClr.Stubs; diff --git a/src/System.Management.Automation/security/wldpNativeMethods.cs b/src/System.Management.Automation/security/wldpNativeMethods.cs index 059720935..d269c7ef3 100644 --- a/src/System.Management.Automation/security/wldpNativeMethods.cs +++ b/src/System.Management.Automation/security/wldpNativeMethods.cs @@ -1,5 +1,3 @@ -using System; -using System.Management.Automation; using System.Management.Automation.Internal; using Microsoft.Win32; using System.Runtime.InteropServices; diff --git a/src/System.Management.Automation/singleshell/config/MshConsoleLoadException.cs b/src/System.Management.Automation/singleshell/config/MshConsoleLoadException.cs index 375defddb..c1cc9c256 100644 --- a/src/System.Management.Automation/singleshell/config/MshConsoleLoadException.cs +++ b/src/System.Management.Automation/singleshell/config/MshConsoleLoadException.cs @@ -4,7 +4,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System.Runtime.Serialization; using System.Text; -using System.Reflection; using System.Collections.ObjectModel; #if CORECLR diff --git a/src/System.Management.Automation/singleshell/config/MshSnapinInfo.cs b/src/System.Management.Automation/singleshell/config/MshSnapinInfo.cs index 787b0e48f..c19c88936 100644 --- a/src/System.Management.Automation/singleshell/config/MshSnapinInfo.cs +++ b/src/System.Management.Automation/singleshell/config/MshSnapinInfo.cs @@ -14,7 +14,6 @@ using Regex = System.Text.RegularExpressions.Regex; using Dbg = System.Management.Automation.Diagnostics; using Microsoft.PowerShell.Commands; -using Microsoft.PowerShell; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/singleshell/config/RegistryStringResourceIndirect.cs b/src/System.Management.Automation/singleshell/config/RegistryStringResourceIndirect.cs index e7125cde0..169b1ba7e 100644 --- a/src/System.Management.Automation/singleshell/config/RegistryStringResourceIndirect.cs +++ b/src/System.Management.Automation/singleshell/config/RegistryStringResourceIndirect.cs @@ -2,14 +2,12 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections; using System.Globalization; using System.IO; using System.Reflection; using System.Resources; using System.Security; -using System.Management.Automation; using Microsoft.Win32; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/utils/ArchitectureSensitiveAttribute.cs b/src/System.Management.Automation/utils/ArchitectureSensitiveAttribute.cs index 2f57c52db..a84c60d51 100644 --- a/src/System.Management.Automation/utils/ArchitectureSensitiveAttribute.cs +++ b/src/System.Management.Automation/utils/ArchitectureSensitiveAttribute.cs @@ -2,9 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Reflection; - namespace System.Management.Automation.Internal { /// diff --git a/src/System.Management.Automation/utils/CommandDiscoveryExceptions.cs b/src/System.Management.Automation/utils/CommandDiscoveryExceptions.cs index c3c7fe328..45a406c74 100644 --- a/src/System.Management.Automation/utils/CommandDiscoveryExceptions.cs +++ b/src/System.Management.Automation/utils/CommandDiscoveryExceptions.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Runtime.Serialization; using System.Text; using System.Collections.ObjectModel; diff --git a/src/System.Management.Automation/utils/CommandProcessorExceptions.cs b/src/System.Management.Automation/utils/CommandProcessorExceptions.cs index 8cf5a5bc3..4a3096268 100644 --- a/src/System.Management.Automation/utils/CommandProcessorExceptions.cs +++ b/src/System.Management.Automation/utils/CommandProcessorExceptions.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Runtime.Serialization; #if CORECLR diff --git a/src/System.Management.Automation/utils/CoreProviderCmdlets.cs b/src/System.Management.Automation/utils/CoreProviderCmdlets.cs index 7d5fc1200..a4a059bcc 100644 --- a/src/System.Management.Automation/utils/CoreProviderCmdlets.cs +++ b/src/System.Management.Automation/utils/CoreProviderCmdlets.cs @@ -2,8 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System.Diagnostics.CodeAnalysis; - namespace System.Management.Automation { /// diff --git a/src/System.Management.Automation/utils/ExecutionExceptions.cs b/src/System.Management.Automation/utils/ExecutionExceptions.cs index e0fbbd48b..8298a0ac6 100644 --- a/src/System.Management.Automation/utils/ExecutionExceptions.cs +++ b/src/System.Management.Automation/utils/ExecutionExceptions.cs @@ -6,7 +6,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. #pragma warning disable 56506 -using System; using System.Runtime.Serialization; using System.Diagnostics.CodeAnalysis; using System.Management.Automation.Internal; diff --git a/src/System.Management.Automation/utils/HostInterfacesExceptions.cs b/src/System.Management.Automation/utils/HostInterfacesExceptions.cs index 7979458bc..eddfcb98b 100644 --- a/src/System.Management.Automation/utils/HostInterfacesExceptions.cs +++ b/src/System.Management.Automation/utils/HostInterfacesExceptions.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Runtime.Serialization; using System.Management.Automation.Internal; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/utils/IObjectReader.cs b/src/System.Management.Automation/utils/IObjectReader.cs index bf7973775..40be07123 100644 --- a/src/System.Management.Automation/utils/IObjectReader.cs +++ b/src/System.Management.Automation/utils/IObjectReader.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Threading; using System.Collections.Generic; using System.Collections.ObjectModel; diff --git a/src/System.Management.Automation/utils/MetadataExceptions.cs b/src/System.Management.Automation/utils/MetadataExceptions.cs index 66cfee3b4..9fd304643 100644 --- a/src/System.Management.Automation/utils/MetadataExceptions.cs +++ b/src/System.Management.Automation/utils/MetadataExceptions.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.Serialization; using System.Management.Automation.Internal; diff --git a/src/System.Management.Automation/utils/MshArgumentException.cs b/src/System.Management.Automation/utils/MshArgumentException.cs index ea51a0a5a..7b34ff56b 100644 --- a/src/System.Management.Automation/utils/MshArgumentException.cs +++ b/src/System.Management.Automation/utils/MshArgumentException.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Runtime.Serialization; #if !CORECLR diff --git a/src/System.Management.Automation/utils/MshArgumentNullException.cs b/src/System.Management.Automation/utils/MshArgumentNullException.cs index 407efa08a..3e3a6c772 100644 --- a/src/System.Management.Automation/utils/MshArgumentNullException.cs +++ b/src/System.Management.Automation/utils/MshArgumentNullException.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Runtime.Serialization; #if !CORECLR diff --git a/src/System.Management.Automation/utils/MshArgumentOutOfRangeException.cs b/src/System.Management.Automation/utils/MshArgumentOutOfRangeException.cs index f29b33049..242ea2e5b 100644 --- a/src/System.Management.Automation/utils/MshArgumentOutOfRangeException.cs +++ b/src/System.Management.Automation/utils/MshArgumentOutOfRangeException.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Runtime.Serialization; #if !CORECLR diff --git a/src/System.Management.Automation/utils/MshInvalidOperationException.cs b/src/System.Management.Automation/utils/MshInvalidOperationException.cs index 03752dba3..cd66a58ec 100644 --- a/src/System.Management.Automation/utils/MshInvalidOperationException.cs +++ b/src/System.Management.Automation/utils/MshInvalidOperationException.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Runtime.Serialization; #if !CORECLR diff --git a/src/System.Management.Automation/utils/MshNotImplementedException.cs b/src/System.Management.Automation/utils/MshNotImplementedException.cs index 09ae88143..f5a6894fe 100644 --- a/src/System.Management.Automation/utils/MshNotImplementedException.cs +++ b/src/System.Management.Automation/utils/MshNotImplementedException.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Runtime.Serialization; #if !CORECLR diff --git a/src/System.Management.Automation/utils/MshObjectDisposedException.cs b/src/System.Management.Automation/utils/MshObjectDisposedException.cs index 19092e5e0..04466fb6c 100644 --- a/src/System.Management.Automation/utils/MshObjectDisposedException.cs +++ b/src/System.Management.Automation/utils/MshObjectDisposedException.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Runtime.Serialization; #if !CORECLR diff --git a/src/System.Management.Automation/utils/MshTraceSource.cs b/src/System.Management.Automation/utils/MshTraceSource.cs index 2d7af5efb..f9e2e4b86 100644 --- a/src/System.Management.Automation/utils/MshTraceSource.cs +++ b/src/System.Management.Automation/utils/MshTraceSource.cs @@ -3,7 +3,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ #define TRACE -using System; using System.Reflection; using System.Management.Automation.Internal; diff --git a/src/System.Management.Automation/utils/PSTelemetryMethods.cs b/src/System.Management.Automation/utils/PSTelemetryMethods.cs index 06c6bd848..9d5e06a9f 100644 --- a/src/System.Management.Automation/utils/PSTelemetryMethods.cs +++ b/src/System.Management.Automation/utils/PSTelemetryMethods.cs @@ -3,7 +3,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; -using System.Collections.Concurrent; using System.Collections.Generic; using System.Diagnostics; using System.Management.Automation.Internal; @@ -12,7 +11,6 @@ using System.Management.Automation; using System.Management.Automation.Language; using System.Threading; using System.Threading.Tasks; -using Microsoft.PowerShell.Telemetry.Internal; #if CORECLR using Environment = System.Management.Automation.Environment; #else diff --git a/src/System.Management.Automation/utils/ParameterBinderExceptions.cs b/src/System.Management.Automation/utils/ParameterBinderExceptions.cs index 41c2368a5..6dca02238 100644 --- a/src/System.Management.Automation/utils/ParameterBinderExceptions.cs +++ b/src/System.Management.Automation/utils/ParameterBinderExceptions.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Management.Automation.Internal; using System.Management.Automation.Language; using System.Runtime.Serialization; diff --git a/src/System.Management.Automation/utils/ParserException.cs b/src/System.Management.Automation/utils/ParserException.cs index 76ecfc728..d3e4966eb 100644 --- a/src/System.Management.Automation/utils/ParserException.cs +++ b/src/System.Management.Automation/utils/ParserException.cs @@ -2,12 +2,10 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Management.Automation.Language; using System.Runtime.Serialization; -using System.Text; #if CORECLR // Use stub for SerializableAttribute and ISerializable related types. diff --git a/src/System.Management.Automation/utils/PathUtils.cs b/src/System.Management.Automation/utils/PathUtils.cs index c240b6b5a..e6cceecbf 100644 --- a/src/System.Management.Automation/utils/PathUtils.cs +++ b/src/System.Management.Automation/utils/PathUtils.cs @@ -5,7 +5,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. using System.Collections.Generic; using System.Globalization; using System.IO; -using System.Runtime.InteropServices; using System.Text; using System.Management.Automation.Internal; diff --git a/src/System.Management.Automation/utils/PowerShellETWTracer.cs b/src/System.Management.Automation/utils/PowerShellETWTracer.cs index be60b2576..b8ef4d871 100644 --- a/src/System.Management.Automation/utils/PowerShellETWTracer.cs +++ b/src/System.Management.Automation/utils/PowerShellETWTracer.cs @@ -2,14 +2,10 @@ // // Copyright (C) Microsoft. All rights reserved. // -using System; -using System.Collections.Generic; using System.Globalization; -using System.Linq; using System.Management.Automation.Runspaces; using System.Text; using System.Diagnostics.Eventing; -using System.Diagnostics.CodeAnalysis; using System.Management.Automation.Internal; namespace System.Management.Automation.Tracing diff --git a/src/System.Management.Automation/utils/ResourceManagerCache.cs b/src/System.Management.Automation/utils/ResourceManagerCache.cs index ebdfa5306..6f83adb82 100644 --- a/src/System.Management.Automation/utils/ResourceManagerCache.cs +++ b/src/System.Management.Automation/utils/ResourceManagerCache.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Reflection; using System.Collections.Generic; using System.Resources; diff --git a/src/System.Management.Automation/utils/RuntimeException.cs b/src/System.Management.Automation/utils/RuntimeException.cs index ac035672d..ccd25118f 100644 --- a/src/System.Management.Automation/utils/RuntimeException.cs +++ b/src/System.Management.Automation/utils/RuntimeException.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Management.Automation.Language; using System.Runtime.Serialization; diff --git a/src/System.Management.Automation/utils/SessionStateExceptions.cs b/src/System.Management.Automation/utils/SessionStateExceptions.cs index e3c356b03..e21b18f0f 100644 --- a/src/System.Management.Automation/utils/SessionStateExceptions.cs +++ b/src/System.Management.Automation/utils/SessionStateExceptions.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Collections.ObjectModel; using System.Runtime.Serialization; using System.Management.Automation.Internal; diff --git a/src/System.Management.Automation/utils/StringUtil.cs b/src/System.Management.Automation/utils/StringUtil.cs index 87241c385..bc2d3c892 100644 --- a/src/System.Management.Automation/utils/StringUtil.cs +++ b/src/System.Management.Automation/utils/StringUtil.cs @@ -2,7 +2,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; using System.Management.Automation.Host; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/utils/WindowsErrorReporting.cs b/src/System.Management.Automation/utils/WindowsErrorReporting.cs index dc14a4f16..c8fdad7af 100644 --- a/src/System.Management.Automation/utils/WindowsErrorReporting.cs +++ b/src/System.Management.Automation/utils/WindowsErrorReporting.cs @@ -4,7 +4,6 @@ using System.Diagnostics; using System.Diagnostics.CodeAnalysis; -using System.Globalization; using System.IO; using System.Reflection; using System.Runtime.ConstrainedExecution; diff --git a/src/System.Management.Automation/utils/assert.cs b/src/System.Management.Automation/utils/assert.cs index 945e4b3d3..c84f66689 100644 --- a/src/System.Management.Automation/utils/assert.cs +++ b/src/System.Management.Automation/utils/assert.cs @@ -11,7 +11,6 @@ Copyright (c) Microsoft Corporation. All rights reserved. // nor ASSERTIONS_TRACE is defined. #define DEBUG -using System; using System.Diagnostics; using System.Text; diff --git a/src/System.Management.Automation/utils/perfCounters/CounterSetInstanceBase.cs b/src/System.Management.Automation/utils/perfCounters/CounterSetInstanceBase.cs index 83f82ed4e..2fd3ce206 100644 --- a/src/System.Management.Automation/utils/perfCounters/CounterSetInstanceBase.cs +++ b/src/System.Management.Automation/utils/perfCounters/CounterSetInstanceBase.cs @@ -2,15 +2,11 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; using System.Collections.Concurrent; using System.Collections.Generic; using System.Diagnostics.PerformanceData; using System.Diagnostics.CodeAnalysis; using System.Globalization; -using System.Linq; -using System.Text; using System.Diagnostics; using System.Management.Automation.Tracing; diff --git a/src/System.Management.Automation/utils/perfCounters/CounterSetRegistrarBase.cs b/src/System.Management.Automation/utils/perfCounters/CounterSetRegistrarBase.cs index 7b6bf41be..2e1514f4c 100644 --- a/src/System.Management.Automation/utils/perfCounters/CounterSetRegistrarBase.cs +++ b/src/System.Management.Automation/utils/perfCounters/CounterSetRegistrarBase.cs @@ -2,12 +2,8 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections.Generic; using System.Diagnostics.PerformanceData; using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Text; namespace System.Management.Automation.PerformanceData { diff --git a/src/System.Management.Automation/utils/perfCounters/PSPerfCountersMgr.cs b/src/System.Management.Automation/utils/perfCounters/PSPerfCountersMgr.cs index d84ee4534..08454da68 100644 --- a/src/System.Management.Automation/utils/perfCounters/PSPerfCountersMgr.cs +++ b/src/System.Management.Automation/utils/perfCounters/PSPerfCountersMgr.cs @@ -2,16 +2,12 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ -using System; -using System.Collections; using System.Collections.Concurrent; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; -using System.Linq; using System.Management.Automation.Tracing; -using System.Text; namespace System.Management.Automation.PerformanceData { diff --git a/src/System.Management.Automation/utils/tracing/EtwEventCorrelator.cs b/src/System.Management.Automation/utils/tracing/EtwEventCorrelator.cs index 182b0afea..ffa00dfab 100644 --- a/src/System.Management.Automation/utils/tracing/EtwEventCorrelator.cs +++ b/src/System.Management.Automation/utils/tracing/EtwEventCorrelator.cs @@ -7,7 +7,6 @@ namespace System.Management.Automation.Tracing { using System; - using System.Diagnostics; using System.Diagnostics.Eventing; /// diff --git a/src/System.Management.Automation/utils/tracing/TracingGen.cs b/src/System.Management.Automation/utils/tracing/TracingGen.cs index d45618bb4..d277e047b 100644 --- a/src/System.Management.Automation/utils/tracing/TracingGen.cs +++ b/src/System.Management.Automation/utils/tracing/TracingGen.cs @@ -1,10 +1,6 @@ #if !UNIX -using System; -using System.Collections; using System.Diagnostics.Eventing; -using System.Diagnostics; using System.Diagnostics.CodeAnalysis; -using System.Management.Automation.Tracing; namespace System.Management.Automation.Tracing {