From 6e2e67ab55c75f4655397588c0dcc64f50d22f92 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Mon, 13 Jan 2020 14:41:17 -0800 Subject: Remove WixActionRowCollection and duplicate actions.xml --- .../WindowsInstallerStandardInternal.cs | 30 ++-------------------- 1 file changed, 2 insertions(+), 28 deletions(-) (limited to 'src/WixToolset.Core.WindowsInstaller/WindowsInstallerStandardInternal.cs') diff --git a/src/WixToolset.Core.WindowsInstaller/WindowsInstallerStandardInternal.cs b/src/WixToolset.Core.WindowsInstaller/WindowsInstallerStandardInternal.cs index 759bda14..33f1ba04 100644 --- a/src/WixToolset.Core.WindowsInstaller/WindowsInstallerStandardInternal.cs +++ b/src/WixToolset.Core.WindowsInstaller/WindowsInstallerStandardInternal.cs @@ -2,10 +2,8 @@ namespace WixToolset.Core.WindowsInstaller { - using System; using System.Reflection; using System.Xml; - using WixToolset.Core.WindowsInstaller.Rows; using WixToolset.Data.WindowsInstaller; /// @@ -16,9 +14,6 @@ namespace WixToolset.Core.WindowsInstaller private static readonly object lockObject = new object(); private static TableDefinitionCollection tableDefinitions; -#if REVISIT_FOR_PATCHING - private static WixActionRowCollection standardActions; -#endif /// /// Gets the table definitions stored in this assembly. @@ -26,6 +21,8 @@ namespace WixToolset.Core.WindowsInstaller /// Table definition collection for tables stored in this assembly. public static TableDefinitionCollection GetTableDefinitions() { + // TODO: make the data static data structures instead of parsing an XML file and consider + // moving it all to WixToolset.Data.WindowsInstallerStandard class. lock (lockObject) { if (null == WindowsInstallerStandardInternal.tableDefinitions) @@ -39,28 +36,5 @@ namespace WixToolset.Core.WindowsInstaller return WindowsInstallerStandardInternal.tableDefinitions; } - - /// - /// Gets the standard actions stored in this assembly. - /// - /// Collection of standard actions in this assembly. - public static WixActionRowCollection GetStandardActionRows() - { -#if REVISIT_FOR_PATCHING - lock (lockObject) - { - if (null == WindowsInstallerStandardInternal.standardActions) - { - using (XmlReader reader = XmlReader.Create(Assembly.GetExecutingAssembly().GetManifestResourceStream("WixToolset.Core.WindowsInstaller.Data.actions.xml"))) - { - WindowsInstallerStandardInternal.standardActions = WixActionRowCollection.Load(reader); - } - } - } - - return WindowsInstallerStandardInternal.standardActions; -#endif - throw new NotImplementedException(); - } } } -- cgit v1.2.3-55-g6feb