Delete faction legacy ID projection

This commit is contained in:
Meta Vens 2026-06-16 12:31:48 +01:00
commit 5c691ea85c
6 changed files with 9 additions and 19 deletions

View file

@ -261,7 +261,6 @@ public class Galaxy
return new Faction
{
ID = ParseLegacyId(corporation.LegacyId, nameof(corporation.LegacyId), corporation.Name),
FactionKey = corporation.CorporationKey,
Name = corporation.Name,
ShortName = corporation.ShortName,
@ -272,16 +271,6 @@ public class Galaxy
};
}
private static Guid ParseLegacyId(string legacyId, string fieldName, string ownerName)
{
if (Guid.TryParse(legacyId, out var parsed) && parsed != Guid.Empty)
{
return parsed;
}
throw new InvalidOperationException($"Typed catalog corporation {ownerName} has invalid {fieldName} '{legacyId}'.");
}
private void PlaceFactionsMain(int bossCount, Action<string> progressCallback = null)
{
progressCallback?.Invoke("Finding Chokepoints");