From 5abe137e6f563ea76a97c55f468d2d7620861937 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Thu, 9 Mar 2023 05:41:49 -0800 Subject: Remove now redundant code due to updated LaunchCondition converter --- src/wix/WixToolset.Converters/WixConverter.cs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/wix/WixToolset.Converters/WixConverter.cs b/src/wix/WixToolset.Converters/WixConverter.cs index 93e1692d..f2711300 100644 --- a/src/wix/WixToolset.Converters/WixConverter.cs +++ b/src/wix/WixToolset.Converters/WixConverter.cs @@ -1355,25 +1355,6 @@ namespace WixToolset.Converters } } - var xConditions = element.Elements(ConditionElementName).ToList(); - foreach (var xCondition in xConditions) - { - var message = xCondition.Attribute("Message")?.Value; - - if (!String.IsNullOrEmpty(message) && - TryGetInnerText(xCondition, out var text, out var comments) && - this.OnInformation(ConverterTestType.InnerTextDeprecated, element, "Using {0} element text is deprecated. Use the 'Launch' element instead.", xCondition.Name.LocalName)) - { - using (var lab = new ConversionLab(xCondition)) - { - lab.ReplaceTargetElement(new XElement(LaunchElementName, - new XAttribute("Condition", text), - new XAttribute("Message", message))); - lab.AddCommentsAsSiblings(comments); - } - } - } - var xMediaTemplate = element.Element(MediaTemplateElementName); if (xMediaTemplate?.HasAttributes == false && this.OnInformation(ConverterTestType.DefaultMediaTemplate, element, "A MediaTemplate with no attributes set is now provided by default. Remove the element.")) -- cgit v1.2.3-55-g6feb