Skip to content

Commit d0b2304

Browse files
authored
Remove unused console strings (PowerShell#18369)
1 parent eef7c45 commit d0b2304

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

src/Microsoft.PowerShell.ConsoleHost/resources/ConsoleControlStrings.resx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,6 @@
123123
<data name="RemoveBreakHandlerExceptionTemplate" xml:space="preserve">
124124
<value>The Win32 internal error "{0}" 0x{1:X} occurred while trying to remove a break handler. Contact Microsoft Customer Support Services.</value>
125125
</data>
126-
<data name="AttachToParentConsoleExceptionTemplate" xml:space="preserve">
127-
<value>The Win32 internal error "{0}" 0x{1:X} occurred while attaching to parent console. Contact Microsoft Customer Support Services.</value>
128-
</data>
129-
<data name="DetachFromConsoleExceptionTemplate" xml:space="preserve">
130-
<value>The Win32 internal error "{0}" 0x{1:X} occurred while detaching from the console. Contact Microsoft Customer Support Services.</value>
131-
</data>
132126
<data name="GetInputModeExceptionTemplate" xml:space="preserve">
133127
<value>The Win32 internal error "{0}" 0x{1:X} occurred while getting input about the console handle. Contact Microsoft Customer Support Services.</value>
134128
</data>
@@ -192,9 +186,6 @@
192186
<data name="SetConsoleTextAttributeExceptionTemplate" xml:space="preserve">
193187
<value>The Win32 internal error "{0}" 0x{1:X} occurred while setting character attributes for the console output buffer. Contact Microsoft Customer Support Services.</value>
194188
</data>
195-
<data name="SetConsoleCursorPositionExceptionTemplate" xml:space="preserve">
196-
<value>The Win32 internal error "{0}" 0x{1:X} occurred while trying to set the cursor position. Contact Microsoft Customer Support Services.</value>
197-
</data>
198189
<data name="GetConsoleCursorInfoExceptionTemplate" xml:space="preserve">
199190
<value>The Win32 internal error "{0}" 0x{1:X} occurred while getting cursor information. Contact Microsoft Customer Support Services.</value>
200191
</data>
@@ -207,7 +198,4 @@
207198
<data name="SendKeyPressInputExceptionTemplate" xml:space="preserve">
208199
<value>The Win32 internal error "{0}" 0x{1:X} occurred while sending keyboard input. Contact Microsoft Customer Support Services.</value>
209200
</data>
210-
<data name="SetConsoleFontInfoExceptionTemplate" xml:space="preserve">
211-
<value>The Win32 internal error "{0}" 0x{1:X} occurred while setting console font information. Contact Microsoft Customer Support Services.</value>
212-
</data>
213201
</root>

src/Microsoft.PowerShell.ConsoleHost/resources/ConsoleHostStrings.resx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,9 @@
123123
<data name="InputExitCurrentLoopOutOfSyncError" xml:space="preserve">
124124
<value>Cannot process input loop. ExitCurrentLoop was called when no InputLoops were running.</value>
125125
</data>
126-
<data name="NestedPromptEntryError" xml:space="preserve">
127-
<value>A nested prompt cannot be entered until the host is running at least one prompt loop.</value>
128-
</data>
129126
<data name="DefaultPrompt" xml:space="preserve">
130127
<value>PS&gt;</value>
131128
</data>
132-
<data name="InitScriptFailed" xml:space="preserve">
133-
<value>Execution of initialization script has failed. The shell cannot be started.</value>
134-
</data>
135129
<data name="ShellCannotBeStarted" xml:space="preserve">
136130
<value>The shell cannot be started. A failure occurred during initialization:</value>
137131
</data>
@@ -155,9 +149,6 @@ PowerShell transcript end
155149
End time: {0:yyyyMMddHHmmss}
156150
**********************</value>
157151
</data>
158-
<data name="ConsoleHostIsSingleton" xml:space="preserve">
159-
<value>An instance of the ConsoleHost class has already been created for this process.</value>
160-
</data>
161152
<data name="InitialCommandNotExecuted" xml:space="preserve">
162153
<value>Command '{0}' could not be run because some PowerShell Snap-Ins did not load.</value>
163154
</data>

0 commit comments

Comments
 (0)