Skip to content

Commit 6bf0172

Browse files
committed
MS.CA.VB resources cleanup
1 parent 57a26b5 commit 6bf0172

File tree

4 files changed

+5
-25
lines changed

4 files changed

+5
-25
lines changed

src/Compilers/VisualBasic/Portable/Compilation/VisualBasicCompilation.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
943943

944944
For Each tree As SyntaxTree In trees
945945
If tree Is Nothing Then
946-
Throw New ArgumentNullException(String.Format(VBResources.Trees0, i))
946+
Throw New ArgumentNullException($"trees({i})")
947947
End If
948948

949949
If Not tree.HasCompilationUnitRoot Then
@@ -955,7 +955,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
955955
End If
956956

957957
If declMap.ContainsKey(tree) Then
958-
Throw New ArgumentException(VBResources.SyntaxTreeAlreadyPresent, String.Format(VBResources.Trees0, i))
958+
Throw New ArgumentException(VBResources.SyntaxTreeAlreadyPresent, $"trees({i})")
959959
End If
960960

961961
AddSyntaxTreeToDeclarationMapAndTable(tree, _options, Me.IsSubmission, declMap, declTable, referenceDirectivesChanged) ' declMap and declTable passed ByRef

src/Compilers/VisualBasic/Portable/Errors/ErrorFacts.vb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,6 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
450450
ERRID.ERR_NameNotEvent2,
451451
ERRID.ERR_AddOrRemoveHandlerEvent,
452452
ERRID.ERR_UnrecognizedEnd,
453-
ERRID.ERR_ArrayInitForNonArray2,
454453
ERRID.ERR_EndRegionNoRegion,
455454
ERRID.ERR_ExpectedEndRegion,
456455
ERRID.ERR_InheritsStmtWrongOrder,

src/Compilers/VisualBasic/Portable/Errors/Errors.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
528528
ERR_AddOrRemoveHandlerEvent = 30677
529529
ERR_UnrecognizedEnd = 30678
530530

531-
ERR_ArrayInitForNonArray2 = 30679
531+
' ERR_ArrayInitForNonArray2 = 30679 - unused
532532

533533
ERR_EndRegionNoRegion = 30680
534534
ERR_ExpectedEndRegion = 30681

src/Compilers/VisualBasic/Portable/VBResources.resx

Lines changed: 2 additions & 21 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=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119119
</resheader>
120-
<data name="Trees0" xml:space="preserve">
121-
<value>trees({0})</value>
122-
</data>
123120
<data name="TreesMustHaveRootNode" xml:space="preserve">
124121
<value>trees({0}) must have root node with SyntaxKind.CompilationUnit.</value>
125122
</data>
@@ -210,12 +207,6 @@
210207
<data name="ERR_NoSources" xml:space="preserve">
211208
<value>no input sources specified</value>
212209
</data>
213-
<data name="WRN_FileAlreadyIncluded" xml:space="preserve">
214-
<value>source file '{0}' specified multiple times</value>
215-
</data>
216-
<data name="WRN_FileAlreadyIncluded_Title" xml:space="preserve">
217-
<value>Source file specified multiple times</value>
218-
</data>
219210
<data name="ERR_CantOpenFileWrite" xml:space="preserve">
220211
<value>can't open '{0}' for writing: {1}</value>
221212
</data>
@@ -240,12 +231,6 @@
240231
<data name="WRN_NoConfigInResponseFile_Title" xml:space="preserve">
241232
<value>Ignoring /noconfig option because it was specified in a response file</value>
242233
</data>
243-
<data name="WRN_InvalidWarningId" xml:space="preserve">
244-
<value>warning number '{0}' for the option '{1}' is either not configurable or not valid</value>
245-
</data>
246-
<data name="WRN_InvalidWarningId_Title" xml:space="preserve">
247-
<value>Warning number is either not configurable or not valid</value>
248-
</data>
249234
<data name="ERR_NoSourcesOut" xml:space="preserve">
250235
<value>cannot infer an output file name from resource only input files; provide the '/out' option</value>
251236
</data>
@@ -1527,9 +1512,6 @@
15271512
<data name="ERR_UnrecognizedEnd" xml:space="preserve">
15281513
<value>'End' statement not valid.</value>
15291514
</data>
1530-
<data name="ERR_ArrayInitForNonArray2" xml:space="preserve">
1531-
<value>Array initializers are valid only for arrays, but the type of '{0}' is '{1}'.</value>
1532-
</data>
15331515
<data name="ERR_EndRegionNoRegion" xml:space="preserve">
15341516
<value>'#End Region' must be preceded by a matching '#Region'.</value>
15351517
</data>
@@ -5737,7 +5719,6 @@
57375719
<value>The type 'Microsoft.CodeAnalysis.EmbeddedAttribute' must be non-generic, Friend, NotInheritable, have a Public parameterless constructor, inherit from System.Attribute, and be able to be applied to any type</value>
57385720
</data>
57395721
<data name="ERR_MethodImplAttributeAsyncCannotBeUsed" xml:space="preserve">
5740-
<value>'MethodImplAttribute.Async' cannot be manually applied to methods.</value>
5741-
<remarks>'MethodImplAttribute.Async' is not localizable.</remarks>
5722+
<value />
57425723
</data>
5743-
</root>
5724+
</root>

0 commit comments

Comments
 (0)