Skip to content

Commit f3f56d4

Browse files
authored
Remove unused strings from Utility module (PowerShell#18370)
1 parent d0b2304 commit f3f56d4

File tree

8 files changed

+0
-78
lines changed

8 files changed

+0
-78
lines changed

src/Microsoft.PowerShell.Commands.Utility/resources/AliasCommandStrings.resx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,6 @@
135135
<data name="ImportAliasTarget" xml:space="preserve">
136136
<value>Name: {0} Value: {1}</value>
137137
</data>
138-
<data name="ExportAliasToFileSystemOnly" xml:space="preserve">
139-
<value>Cannot export the aliases because path '{0}' referred to a '{1}' provider path. Change the Path parameter to a file system path.</value>
140-
</data>
141-
<data name="ExportAliasPathResolvedToMultiple" xml:space="preserve">
142-
<value>Cannot export the aliases because path '{0}' contains wildcard characters that resolved to multiple paths. Aliases can be exported to only one file. Change the value of the Path parameter to a path that resolves to a single file.</value>
143-
</data>
144138
<data name="ExportAliasFileOpenFailed" xml:space="preserve">
145139
<value>Cannot open file {0} to export the alias. {1}</value>
146140
</data>

src/Microsoft.PowerShell.Commands.Utility/resources/HostStrings.resx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,4 @@
120120
<data name="InvalidColorErrorTemplate" xml:space="preserve">
121121
<value>Cannot process the color because {0} is not a valid color.</value>
122122
</data>
123-
<data name="NoStringToEvalulateError" xml:space="preserve">
124-
<value>Cannot evaluate the error because a string is not specified.</value>
125-
</data>
126123
</root>

src/Microsoft.PowerShell.Commands.Utility/resources/ImmutableStrings.resx

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -117,31 +117,7 @@
117117
<resheader name="writer">
118118
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119119
</resheader>
120-
<data name="ArrayInitializedStateNotEqual" xml:space="preserve">
121-
<value>Object is not a array with the same initialization state as the array to compare it to.</value>
122-
</data>
123-
<data name="ArrayLengthsNotEqual" xml:space="preserve">
124-
<value>Object is not a array with the same number of elements as the array to compare it to.</value>
125-
</data>
126-
<data name="CannotFindOldValue" xml:space="preserve">
127-
<value>Cannot find the old value</value>
128-
</data>
129-
<data name="CapacityMustBeGreaterThanOrEqualToCount" xml:space="preserve">
130-
<value>Capacity was less than the current Count of elements.</value>
131-
</data>
132-
<data name="CapacityMustEqualCountOnMove" xml:space="preserve">
133-
<value>MoveToImmutable can only be performed when Count equals Capacity.</value>
134-
</data>
135-
<data name="CollectionModifiedDuringEnumeration" xml:space="preserve">
136-
<value>Collection was modified; enumeration operation may not execute.</value>
137-
</data>
138120
<data name="DuplicateKey" xml:space="preserve">
139121
<value>An element with the same key but a different value already exists. Key: {0}</value>
140122
</data>
141-
<data name="InvalidEmptyOperation" xml:space="preserve">
142-
<value>This operation does not apply to an empty instance.</value>
143-
</data>
144-
<data name="InvalidOperationOnDefaultArray" xml:space="preserve">
145-
<value>This operation cannot be performed on a default instance of ImmutableArray&lt;T&gt;. Consider initializing the array, or checking the ImmutableArray&lt;T&gt;.IsDefault property.</value>
146-
</data>
147123
</root>

src/Microsoft.PowerShell.Commands.Utility/resources/ImplicitRemotingStrings.resx

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@
129129
<data name="ErrorNoResultsFromRemoteEnd" xml:space="preserve">
130130
<value>Running the {0} command in a remote session returned no results.</value>
131131
</data>
132-
<data name="ErrorCannotCreateTemporaryFile" xml:space="preserve">
133-
<value>Cannot create temporary file for implicit remoting module.</value>
134-
</data>
135132
<data name="ErrorNoRunspaceForThisModule" xml:space="preserve">
136133
<value>No session has been associated with this implicit remoting module.</value>
137134
</data>
@@ -147,15 +144,6 @@
147144
<data name="ErrorSkippedUnsafeCommandName" xml:space="preserve">
148145
<value>Proxy creation has been skipped for the '{0}' command, because PowerShell could not verify the safety of the command name.</value>
149146
</data>
150-
<data name="ErrorSkippedUnsafeParameterName" xml:space="preserve">
151-
<value>Proxy creation has been skipped for the '{0}' command, because PowerShell could not verify the safety of a parameter name: '{1}'.</value>
152-
</data>
153-
<data name="ErrorSkippedUnsafeParameterSetName" xml:space="preserve">
154-
<value>Proxy creation has been skipped for the '{0}' command, because PowerShell could not verify the safety of a parameter set name: '{1}'.</value>
155-
</data>
156-
<data name="ErrorSkippedUnsafeAliasName" xml:space="preserve">
157-
<value>Proxy creation has been skipped for the '{0}' command, because PowerShell could not verify the safety of a parameter alias name: '{1}'.</value>
158-
</data>
159147
<data name="ErrorCommandSkippedBecauseOfShadowing" xml:space="preserve">
160148
<value>Proxy creation has been skipped for the following command: '{0}', because it would shadow an existing local command. Use the AllowClobber parameter if you want to shadow existing local commands.</value>
161149
</data>
@@ -204,9 +192,6 @@
204192
<data name="ProgressStatusGetFormatDataProgress" xml:space="preserve">
205193
<value>Getting formatting and output information from remote session ... {0} objects received</value>
206194
</data>
207-
<data name="ProgressStatusProxyGeneration" xml:space="preserve">
208-
<value>Generating a proxy command for '{0}' ...</value>
209-
</data>
210195
<data name="ProgressStatusCompleted" xml:space="preserve">
211196
<value>Completed.</value>
212197
</data>

src/Microsoft.PowerShell.Commands.Utility/resources/NewObjectStrings.resx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,4 @@
147147
<data name="CannotCreateTypeLanguageMode" xml:space="preserve">
148148
<value>Cannot create type. Only core types are supported in {0} language mode on a policy locked down machine.</value>
149149
</data>
150-
<data name="ApartmentNotSupported" xml:space="preserve">
151-
<value>{0} Please note that Single-Threaded Apartment is not supported in PowerShell.</value>
152-
</data>
153150
</root>

src/Microsoft.PowerShell.Commands.Utility/resources/TraceCommandStrings.resx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,6 @@
117117
<resheader name="writer">
118118
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119119
</resheader>
120-
<data name="FileListenerNotFound" xml:space="preserve">
121-
<value>A file listener with name '{0}' was not found.</value>
122-
</data>
123120
<data name="TraceFileOnly" xml:space="preserve">
124121
<value>Trace output can only be written to the file system. The path '{0}' referred to a '{1}' provider path.</value>
125122
</data>

src/Microsoft.PowerShell.Commands.Utility/resources/UpdateDataStrings.resx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,6 @@
135135
<data name="CannotUpdateMemberType" xml:space="preserve">
136136
<value>Cannot update a member with type "{0}". Specify a different type for the MemberType parameter.</value>
137137
</data>
138-
<data name="SerializationDepthNegative" xml:space="preserve">
139-
<value>The value of the SerializationDepth property should not be negative.</value>
140-
</data>
141138
<data name="ShouldBeSpecified" xml:space="preserve">
142139
<value>The {0} parameter is required for the type "{1}". Please specify the {0} parameter.</value>
143140
</data>

src/Microsoft.PowerShell.Commands.Utility/resources/WebCmdletStrings.resx

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,9 @@
162162
<data name="KeysWithDifferentCasingInJsonString" xml:space="preserve">
163163
<value>Cannot convert the JSON string because it contains keys with different casing. Please use the -AsHashTable switch instead. The key that was attempted to be added to the existing key '{0}' was '{1}'.</value>
164164
</data>
165-
<data name="ExtendedProfileRequired" xml:space="preserve">
166-
<value>The ConvertTo-Json and ConvertFrom-Json cmdlets require the installation of the .NET Client Profile, sometimes called the .NET extended profile.</value>
167-
</data>
168165
<data name="IEDomNotSupported" xml:space="preserve">
169166
<value>The response content cannot be parsed because the Internet Explorer engine is not available, or Internet Explorer's first-launch configuration is not complete. Specify the UseBasicParsing parameter and try again. </value>
170167
</data>
171-
<data name="JsonStringInBadFormat" xml:space="preserve">
172-
<value>The converted JSON string is in bad format.</value>
173-
</data>
174168
<data name="MaximumRedirectionCountExceeded" xml:space="preserve">
175169
<value>The maximum redirection count has been exceeded. To increase the number of redirections allowed, supply a higher value to the -MaximumRedirection parameter.</value>
176170
</data>
@@ -207,9 +201,6 @@
207201
<data name="ReadResponseProgressStatus" xml:space="preserve">
208202
<value>Downloaded: {0} of {1}</value>
209203
</data>
210-
<data name="RequestTimeout" xml:space="preserve">
211-
<value>The operation has timed out.</value>
212-
</data>
213204
<data name="SessionConflict" xml:space="preserve">
214205
<value>The cmdlet cannot run because the following conflicting parameters are specified: Session and SessionVariable. Specify either Session or SessionVariable, then retry.</value>
215206
</data>
@@ -228,18 +219,6 @@
228219
<data name="WriteRequestProgressStatus" xml:space="preserve">
229220
<value>Downloaded: {0} of {1}</value>
230221
</data>
231-
<data name="JsonNetModuleRequired" xml:space="preserve">
232-
<value>The ConvertTo-Json and ConvertFrom-Json cmdlets require the 'Json.Net' module. {0}</value>
233-
</data>
234-
<data name="PSModuleAutoloadingPreferenceNotEnable" xml:space="preserve">
235-
<value>The cmdlet cannot run because the 'Json.Net' module cannot be loaded. Import the module manually or set the $PSModuleAutoLoadingPreference variable to enable module auto loading. For more information, see 'get-help about_Preference_Variables'.</value>
236-
</data>
237-
<data name="CouldNotAutoImportJsonNetModule" xml:space="preserve">
238-
<value>However, the 'Json.Net' module could not be loaded. For more information, run 'Import-Module Json.Net'.</value>
239-
</data>
240-
<data name="JsonNetModuleFilesRequired" xml:space="preserve">
241-
<value>Ensure 'Json.Net.psd1' and 'Newtonsoft.Json.dll' are available in a versioned subdirectory of '{0}'.</value>
242-
</data>
243222
<data name="JsonDeserializationFailed" xml:space="preserve">
244223
<value>Conversion from JSON failed with error: {0}</value>
245224
</data>

0 commit comments

Comments
 (0)