Reduce indentation in ProjectXMLParser.
It's more readable when there's more text and less whitespace onscreen.
This commit is contained in:
@@ -827,9 +827,8 @@ class ProjectXMLParser extends HXProject
|
||||
{
|
||||
for (element in xml.elements)
|
||||
{
|
||||
var isValid = isValidElement(element, section);
|
||||
if (isValid)
|
||||
{
|
||||
if (!isValidElement(element, section)) continue;
|
||||
|
||||
switch (element.name)
|
||||
{
|
||||
case "set":
|
||||
@@ -1273,10 +1272,8 @@ class ProjectXMLParser extends HXProject
|
||||
|
||||
for (childElement in element.elements)
|
||||
{
|
||||
var isValid = isValidElement(childElement, "");
|
||||
if (!isValidElement(childElement, "")) continue;
|
||||
|
||||
if (isValid)
|
||||
{
|
||||
switch (childElement.name)
|
||||
{
|
||||
case "imageset":
|
||||
@@ -1289,7 +1286,6 @@ class ProjectXMLParser extends HXProject
|
||||
launchStoryboard.assets.push(imageset);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
case "icon":
|
||||
var path = "";
|
||||
@@ -1681,8 +1677,8 @@ class ProjectXMLParser extends HXProject
|
||||
case "ios":
|
||||
// deprecated
|
||||
|
||||
if (target == Platform.IOS)
|
||||
{
|
||||
if (target != Platform.IOS) continue;
|
||||
|
||||
if (element.has.deployment)
|
||||
{
|
||||
var deployment = Std.parseFloat(substitute(element.att.deployment));
|
||||
@@ -1730,13 +1726,12 @@ class ProjectXMLParser extends HXProject
|
||||
{
|
||||
config.push("ios.linker-flags", substitute(element.att.resolve("linker-flags")));
|
||||
}
|
||||
}
|
||||
|
||||
case "tvos":
|
||||
// deprecated
|
||||
|
||||
if (target == Platform.TVOS)
|
||||
{
|
||||
if (target != Platform.TVOS) continue;
|
||||
|
||||
if (element.has.deployment)
|
||||
{
|
||||
var deployment = Std.parseFloat(substitute(element.att.deployment));
|
||||
@@ -1775,7 +1770,6 @@ class ProjectXMLParser extends HXProject
|
||||
{
|
||||
config.push("tvos.linker-flags", substitute(element.att.resolve("linker-flags")));
|
||||
}
|
||||
}
|
||||
|
||||
case "config":
|
||||
config.parse(element, substitute);
|
||||
@@ -1794,7 +1788,6 @@ class ProjectXMLParser extends HXProject
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function parseWindowElement(element:Access):Void
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user