From 458ff7ce24b33f6df46ae8ef728685c555d55ff7 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Thu, 7 Jan 2021 15:37:28 -0800 Subject: Remove unnecessary SuppressMessage attributes --- src/WixToolset.Core/Compiler.cs | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/WixToolset.Core/Compiler.cs') diff --git a/src/WixToolset.Core/Compiler.cs b/src/WixToolset.Core/Compiler.cs index 62ea8aaf..14b28034 100644 --- a/src/WixToolset.Core/Compiler.cs +++ b/src/WixToolset.Core/Compiler.cs @@ -676,7 +676,6 @@ namespace WixToolset.Core /// /// Element to parse. /// Identifier for the new row. - [SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] private Identifier ParseBinaryElement(XElement node) { var sourceLineNumbers = Preprocessor.GetSourceLineNumbers(node); @@ -2102,7 +2101,6 @@ namespace WixToolset.Core /// Optional disk id inherited from parent directory. /// Optional identifier for component's directory. /// Optional source path for files up to this point. - [SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] private void ParseComponentElement(XElement node, ComplexReferenceParentType parentType, string parentId, string parentLanguage, int diskId, string directoryId, string srcPath) { var sourceLineNumbers = Preprocessor.GetSourceLineNumbers(node); @@ -2573,7 +2571,6 @@ namespace WixToolset.Core /// Element to parse. /// /// - [SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] private void ParseComponentGroupElement(XElement node, ComplexReferenceParentType parentType, string parentId) { var sourceLineNumbers = Preprocessor.GetSourceLineNumbers(node); @@ -4135,7 +4132,6 @@ namespace WixToolset.Core /// Optional identifier of parent directory. /// Disk id inherited from parent directory. /// Path to source file as of yet. - [SuppressMessage("Microsoft.Performance", "CA1820:TestForEmptyStringsUsingStringLength")] private void ParseDirectoryElement(XElement node, string parentId, int diskId, string fileSource) { var sourceLineNumbers = Preprocessor.GetSourceLineNumbers(node); @@ -4363,7 +4359,6 @@ namespace WixToolset.Core /// Parses a directory reference element. /// /// Element to parse. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] private void ParseDirectoryRefElement(XElement node) { var sourceLineNumbers = Preprocessor.GetSourceLineNumbers(node); @@ -4711,7 +4706,6 @@ namespace WixToolset.Core /// Optional identifer for parent feature. /// Display value for last feature used to get the features to display in the same order as specified /// in the source code. - [SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] private void ParseFeatureElement(XElement node, ComplexReferenceParentType parentType, string parentId, ref int lastDisplay) { var sourceLineNumbers = Preprocessor.GetSourceLineNumbers(node); @@ -4935,7 +4929,6 @@ namespace WixToolset.Core /// Element to parse. /// The type of parent. /// Optional identifier for parent feature. - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] private void ParseFeatureRefElement(XElement node, ComplexReferenceParentType parentType, string parentId) { var sourceLineNumbers = Preprocessor.GetSourceLineNumbers(node); @@ -5029,7 +5022,6 @@ namespace WixToolset.Core /// Element to parse. /// /// - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] private void ParseFeatureGroupElement(XElement node, ComplexReferenceParentType parentType, string parentId) { var sourceLineNumbers = Preprocessor.GetSourceLineNumbers(node); @@ -5484,7 +5476,6 @@ namespace WixToolset.Core /// true if the component is 64-bit. /// /// Yes if this element was marked as the parent component's key path, No if explicitly marked as not being a key path, or NotSet otherwise. - [SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] private YesNoType ParseFileElement(XElement node, string componentId, string directoryId, int diskId, string sourcePath, out string possibleKeyPath, bool win64Component, string componentGuid) { var sourceLineNumbers = Preprocessor.GetSourceLineNumbers(node); -- cgit v1.2.3-55-g6feb