diff options
| author | Bob Arnson <bob@firegiant.com> | 2020-11-09 15:48:37 -0500 |
|---|---|---|
| committer | Bob Arnson <bob@firegiant.com> | 2020-11-09 15:54:55 -0500 |
| commit | af854e4c8341cc90fb41c8b5122d4308574e8a9a (patch) | |
| tree | 87d7986c65bebbd4da1835059398f39dcb20d5f8 /src/WixToolset.Core/Compiler_Module.cs | |
| parent | ae38ae001422b6925e3d214334fd64cfba526952 (diff) | |
| download | wix-af854e4c8341cc90fb41c8b5122d4308574e8a9a.tar.gz wix-af854e4c8341cc90fb41c8b5122d4308574e8a9a.tar.bz2 wix-af854e4c8341cc90fb41c8b5122d4308574e8a9a.zip | |
Obsolete long-deprecated elements and attributes.
Diffstat (limited to 'src/WixToolset.Core/Compiler_Module.cs')
| -rw-r--r-- | src/WixToolset.Core/Compiler_Module.cs | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/src/WixToolset.Core/Compiler_Module.cs b/src/WixToolset.Core/Compiler_Module.cs index 2f926d82..d730ae5d 100644 --- a/src/WixToolset.Core/Compiler_Module.cs +++ b/src/WixToolset.Core/Compiler_Module.cs | |||
| @@ -181,9 +181,6 @@ namespace WixToolset.Core | |||
| 181 | case "Icon": | 181 | case "Icon": |
| 182 | this.ParseIconElement(child); | 182 | this.ParseIconElement(child); |
| 183 | break; | 183 | break; |
| 184 | case "IgnoreModularization": | ||
| 185 | this.ParseIgnoreModularizationElement(child); | ||
| 186 | break; | ||
| 187 | case "IgnoreTable": | 184 | case "IgnoreTable": |
| 188 | this.ParseIgnoreTableElement(child); | 185 | this.ParseIgnoreTableElement(child); |
| 189 | break; | 186 | break; |
| @@ -625,53 +622,6 @@ namespace WixToolset.Core | |||
| 625 | } | 622 | } |
| 626 | 623 | ||
| 627 | /// <summary> | 624 | /// <summary> |
| 628 | /// Parses an ignore modularization element. | ||
| 629 | /// </summary> | ||
| 630 | /// <param name="node">XmlNode on an IgnoreModulatization element.</param> | ||
| 631 | private void ParseIgnoreModularizationElement(XElement node) | ||
| 632 | { | ||
| 633 | var sourceLineNumbers = Preprocessor.GetSourceLineNumbers(node); | ||
| 634 | string name = null; | ||
| 635 | |||
| 636 | this.Core.Write(WarningMessages.DeprecatedIgnoreModularizationElement(sourceLineNumbers)); | ||
| 637 | |||
| 638 | foreach (var attrib in node.Attributes()) | ||
| 639 | { | ||
| 640 | if (String.IsNullOrEmpty(attrib.Name.NamespaceName) || CompilerCore.WixNamespace == attrib.Name.Namespace) | ||
| 641 | { | ||
| 642 | switch (attrib.Name.LocalName) | ||
| 643 | { | ||
| 644 | case "Name": | ||
| 645 | name = this.Core.GetAttributeIdentifierValue(sourceLineNumbers, attrib); | ||
| 646 | break; | ||
| 647 | case "Type": | ||
| 648 | // this is actually not used | ||
| 649 | break; | ||
| 650 | default: | ||
| 651 | this.Core.UnexpectedAttribute(node, attrib); | ||
| 652 | break; | ||
| 653 | } | ||
| 654 | } | ||
| 655 | else | ||
| 656 | { | ||
| 657 | this.Core.ParseExtensionAttribute(node, attrib); | ||
| 658 | } | ||
| 659 | } | ||
| 660 | |||
| 661 | if (null == name) | ||
| 662 | { | ||
| 663 | this.Core.Write(ErrorMessages.ExpectedAttribute(sourceLineNumbers, node.Name.LocalName, "Name")); | ||
| 664 | } | ||
| 665 | |||
| 666 | this.Core.ParseForExtensionElements(node); | ||
| 667 | |||
| 668 | if (!this.Core.EncounteredError) | ||
| 669 | { | ||
| 670 | this.Core.AddSymbol(new WixSuppressModularizationSymbol(sourceLineNumbers, new Identifier(AccessModifier.Private, name))); | ||
| 671 | } | ||
| 672 | } | ||
| 673 | |||
| 674 | /// <summary> | ||
| 675 | /// Parses an IgnoreTable element. | 625 | /// Parses an IgnoreTable element. |
| 676 | /// </summary> | 626 | /// </summary> |
| 677 | /// <param name="node">Element to parse.</param> | 627 | /// <param name="node">Element to parse.</param> |
