From d726db85d820cfd774154c928f3c2b608026803c Mon Sep 17 00:00:00 2001 From: Bob Arnson Date: Sun, 10 Sep 2023 22:52:33 -0400 Subject: [PATCH] Remove unused symbol `Version`. --- src/api/wix/WixToolset.Data/Symbols/SymbolDefinitions.cs | 2 -- src/ext/ComPlus/wixext/Symbols/ComPlusSymbolDefinitions.cs | 2 -- src/ext/DifxApp/wixext/Symbols/DifxAppSymbolDefinitions.cs | 2 -- src/ext/Firewall/wixext/Symbols/FirewallSymbolDefinitions.cs | 2 -- src/ext/Http/wixext/Symbols/HttpSymbolDefinitions.cs | 2 -- src/ext/Iis/wixext/Symbols/IisSymbolDefinitions.cs | 2 -- src/ext/Msmq/wixext/Symbols/MsmqSymbolDefinitions.cs | 2 -- src/ext/NetFx/wixext/Symbols/NetfxSymbolDefinitions.cs | 2 -- src/ext/Sql/wixext/Symbols/SqlSymbolDefinitions.cs | 2 -- src/internal/TablesAndTuples/Program.cs | 2 -- 10 files changed, 20 deletions(-) diff --git a/src/api/wix/WixToolset.Data/Symbols/SymbolDefinitions.cs b/src/api/wix/WixToolset.Data/Symbols/SymbolDefinitions.cs index 6df3109bc..3b545a71d 100644 --- a/src/api/wix/WixToolset.Data/Symbols/SymbolDefinitions.cs +++ b/src/api/wix/WixToolset.Data/Symbols/SymbolDefinitions.cs @@ -205,8 +205,6 @@ public enum SymbolDefinitionType public static partial class SymbolDefinitions { - public static readonly Version Version = new Version("4.0.0"); - public static IntermediateSymbolDefinition ByName(string name) { if (!Enum.TryParse(name, out SymbolDefinitionType type) || type == SymbolDefinitionType.MustBeFromAnExtension) diff --git a/src/ext/ComPlus/wixext/Symbols/ComPlusSymbolDefinitions.cs b/src/ext/ComPlus/wixext/Symbols/ComPlusSymbolDefinitions.cs index 407b9c14b..fcc7e4056 100644 --- a/src/ext/ComPlus/wixext/Symbols/ComPlusSymbolDefinitions.cs +++ b/src/ext/ComPlus/wixext/Symbols/ComPlusSymbolDefinitions.cs @@ -36,8 +36,6 @@ public enum ComPlusSymbolDefinitionType public static partial class ComPlusSymbolDefinitions { - public static readonly Version Version = new Version("4.0.0"); - public static IntermediateSymbolDefinition ByName(string name) { if (!Enum.TryParse(name, out ComPlusSymbolDefinitionType type)) diff --git a/src/ext/DifxApp/wixext/Symbols/DifxAppSymbolDefinitions.cs b/src/ext/DifxApp/wixext/Symbols/DifxAppSymbolDefinitions.cs index 76f4d88fd..c1f9673ac 100644 --- a/src/ext/DifxApp/wixext/Symbols/DifxAppSymbolDefinitions.cs +++ b/src/ext/DifxApp/wixext/Symbols/DifxAppSymbolDefinitions.cs @@ -12,8 +12,6 @@ public enum DifxAppSymbolDefinitionType public static partial class DifxAppSymbolDefinitions { - public static readonly Version Version = new Version("4.0.0"); - public static IntermediateSymbolDefinition ByName(string name) { if (!Enum.TryParse(name, out DifxAppSymbolDefinitionType type)) diff --git a/src/ext/Firewall/wixext/Symbols/FirewallSymbolDefinitions.cs b/src/ext/Firewall/wixext/Symbols/FirewallSymbolDefinitions.cs index 887893c74..14332f391 100644 --- a/src/ext/Firewall/wixext/Symbols/FirewallSymbolDefinitions.cs +++ b/src/ext/Firewall/wixext/Symbols/FirewallSymbolDefinitions.cs @@ -12,8 +12,6 @@ public enum FirewallSymbolDefinitionType public static partial class FirewallSymbolDefinitions { - public static readonly Version Version = new Version("4.0.0"); - public static IntermediateSymbolDefinition ByName(string name) { if (!Enum.TryParse(name, out FirewallSymbolDefinitionType type)) diff --git a/src/ext/Http/wixext/Symbols/HttpSymbolDefinitions.cs b/src/ext/Http/wixext/Symbols/HttpSymbolDefinitions.cs index 2aa034688..ff46ce3bc 100644 --- a/src/ext/Http/wixext/Symbols/HttpSymbolDefinitions.cs +++ b/src/ext/Http/wixext/Symbols/HttpSymbolDefinitions.cs @@ -14,8 +14,6 @@ public enum HttpSymbolDefinitionType public static partial class HttpSymbolDefinitions { - public static readonly Version Version = new Version("4.0.0"); - public static IntermediateSymbolDefinition ByName(string name) { if (!Enum.TryParse(name, out HttpSymbolDefinitionType type)) diff --git a/src/ext/Iis/wixext/Symbols/IisSymbolDefinitions.cs b/src/ext/Iis/wixext/Symbols/IisSymbolDefinitions.cs index d6ed80a2d..549b4ff38 100644 --- a/src/ext/Iis/wixext/Symbols/IisSymbolDefinitions.cs +++ b/src/ext/Iis/wixext/Symbols/IisSymbolDefinitions.cs @@ -29,8 +29,6 @@ public enum IisSymbolDefinitionType public static partial class IisSymbolDefinitions { - public static readonly Version Version = new Version("4.0.0"); - public static IntermediateSymbolDefinition ByName(string name) { if (!Enum.TryParse(name, out IisSymbolDefinitionType type)) diff --git a/src/ext/Msmq/wixext/Symbols/MsmqSymbolDefinitions.cs b/src/ext/Msmq/wixext/Symbols/MsmqSymbolDefinitions.cs index 229417fef..0936bebc2 100644 --- a/src/ext/Msmq/wixext/Symbols/MsmqSymbolDefinitions.cs +++ b/src/ext/Msmq/wixext/Symbols/MsmqSymbolDefinitions.cs @@ -14,8 +14,6 @@ public enum MsmqSymbolDefinitionType public static partial class MsmqSymbolDefinitions { - public static readonly Version Version = new Version("4.0.0"); - public static IntermediateSymbolDefinition ByName(string name) { if (!Enum.TryParse(name, out MsmqSymbolDefinitionType type)) diff --git a/src/ext/NetFx/wixext/Symbols/NetfxSymbolDefinitions.cs b/src/ext/NetFx/wixext/Symbols/NetfxSymbolDefinitions.cs index 1db4f6474..6371a9511 100644 --- a/src/ext/NetFx/wixext/Symbols/NetfxSymbolDefinitions.cs +++ b/src/ext/NetFx/wixext/Symbols/NetfxSymbolDefinitions.cs @@ -17,8 +17,6 @@ public enum NetfxSymbolDefinitionType public static partial class NetfxSymbolDefinitions { - public static readonly Version Version = new Version("4.0.0"); - public static IntermediateSymbolDefinition ByName(string name) { if (!Enum.TryParse(name, out NetfxSymbolDefinitionType type)) diff --git a/src/ext/Sql/wixext/Symbols/SqlSymbolDefinitions.cs b/src/ext/Sql/wixext/Symbols/SqlSymbolDefinitions.cs index 336f15461..3ddacb837 100644 --- a/src/ext/Sql/wixext/Symbols/SqlSymbolDefinitions.cs +++ b/src/ext/Sql/wixext/Symbols/SqlSymbolDefinitions.cs @@ -15,8 +15,6 @@ public enum SqlSymbolDefinitionType public static partial class SqlSymbolDefinitions { - public static readonly Version Version = new Version("4.0.0"); - public static IntermediateSymbolDefinition ByName(string name) { if (!Enum.TryParse(name, out SqlSymbolDefinitionType type)) diff --git a/src/internal/TablesAndTuples/Program.cs b/src/internal/TablesAndTuples/Program.cs index 634acf9dd..1bc440ca9 100644 --- a/src/internal/TablesAndTuples/Program.cs +++ b/src/internal/TablesAndTuples/Program.cs @@ -418,8 +418,6 @@ private static string SymbolNamesFileContent(string prefix, List symbolN "", " public static partial class {3}SymbolDefinitions", " {", - " public static readonly Version Version = new Version(\"4.0.0\");", - "", " public static IntermediateSymbolDefinition ByName(string name)", " {", " if (!Enum.TryParse(name, out {3}SymbolDefinitionType type))",