Skip to content

Commit 714fd09

Browse files
committed
don't purge aliases in the link function
1 parent 37fa829 commit 714fd09

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

CathodeLib/Scripts/CATHODE/CommandsPAK/Helpers/CommandsUtils.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -472,18 +472,6 @@ public static bool PurgeDeadLinks(Commands commands, Composite composite, bool f
472472
entities[i].childLinks = childLinksPurged;
473473
}
474474

475-
//Clear aliases with no parameters/links
476-
List<AliasEntity> aliasPurged = new List<AliasEntity>();
477-
for (int i = 0; i < composite.aliases.Count; i++)
478-
{
479-
if (composite.aliases[i].childLinks.Count == 0 &&
480-
composite.aliases[i].parameters.Count == 0 &&
481-
composite.aliases[i].GetParentLinks(composite).Count == 0)
482-
continue;
483-
aliasPurged.Add(composite.aliases[i]);
484-
}
485-
composite.aliases = aliasPurged;
486-
487475
if (originalUnknownCount +
488476
(originalFuncCount - composite.functions.Count) +
489477
(originalProxyCount - composite.proxies.Count) +

0 commit comments

Comments
 (0)