@joebigelow / wix / commits / 5abe137e

Remove now redundant code due to updated LaunchCondition converter

Rob Mensching committed Mar 9, 2023 at 05:41 UTC 5abe137e6f563ea76a97c55f468d2d7620861937
1 file changed -19
src/wix/WixToolset.Converters/WixConverter.cs
-19
@@ -1355,25 +1355,6 @@ namespace WixToolset.Converters
1355 }
1356 }
1357
1358 - var xConditions = element.Elements(ConditionElementName).ToList();
1359 - foreach (var xCondition in xConditions)
1360 - {
1361 - var message = xCondition.Attribute("Message")?.Value;
1362 -
1363 - if (!String.IsNullOrEmpty(message) &&
1364 - TryGetInnerText(xCondition, out var text, out var comments) &&
1365 - this.OnInformation(ConverterTestType.InnerTextDeprecated, element, "Using {0} element text is deprecated. Use the 'Launch' element instead.", xCondition.Name.LocalName))
1366 - {
1367 - using (var lab = new ConversionLab(xCondition))
1368 - {
1369 - lab.ReplaceTargetElement(new XElement(LaunchElementName,
1370 - new XAttribute("Condition", text),
1371 - new XAttribute("Message", message)));
1372 - lab.AddCommentsAsSiblings(comments);
1373 - }
1374 - }
1375 - }
1376 -
1358 var xMediaTemplate = element.Element(MediaTemplateElementName);
1359 if (xMediaTemplate?.HasAttributes == false
1360 && this.OnInformation(ConverterTestType.DefaultMediaTemplate, element, "A MediaTemplate with no attributes set is now provided by default. Remove the element."))