Remove unused SourceLength remoting property causing formatting issues (#10765)

This commit is contained in:
Steve Lee authored and Ilya committed 2019-10-12 22:10:10 +05:00
1 parent 6d56e65841
commit bf5956193f
2 files changed
+1 -3

No files matched your search

@@ -470,8 +470,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
var isRemotingPropertyName = name.Equals(RemotingConstants.ComputerNameNoteProperty, StringComparison.OrdinalIgnoreCase)
|| name.Equals(RemotingConstants.ShowComputerNameNoteProperty, StringComparison.OrdinalIgnoreCase)
|| name.Equals(RemotingConstants.RunspaceIdNoteProperty, StringComparison.OrdinalIgnoreCase)
|| name.Equals(RemotingConstants.SourceJobInstanceId, StringComparison.OrdinalIgnoreCase)
|| name.Equals(RemotingConstants.SourceLength, StringComparison.OrdinalIgnoreCase);
|| name.Equals(RemotingConstants.SourceJobInstanceId, StringComparison.OrdinalIgnoreCase);
return !isRemotingPropertyName;
}
@@ -93,7 +93,6 @@ namespace System.Management.Automation
internal static readonly string RunspaceIdNoteProperty = "RunspaceId";
internal static readonly string ShowComputerNameNoteProperty = "PSShowComputerName";
internal static readonly string SourceJobInstanceId = "PSSourceJobInstanceId";
internal static readonly string SourceLength = "Length";
internal static readonly string EventObject = "PSEventObject";
// used by Custom Shell related cmdlets.
internal const string PSSessionConfigurationNoun = "PSSessionConfiguration";