refactor(uns): drop dead LoadEquipmentChildrenAsync + LinesForCluster; fix stale comment

This commit is contained in:
Joseph Doherty
2026-06-11 15:11:28 -04:00
parent 6e7127c396
commit f1c4392b0d
4 changed files with 4 additions and 153 deletions
@@ -151,18 +151,6 @@
.Select(a => (a.EntityId!, a.DisplayName))
.ToList();
/// <summary>Returns the <c>(Id, Display)</c> line options inside a single cluster, for the equipment picker.</summary>
private IReadOnlyList<(string Id, string Display)> LinesForCluster(string? clusterId) =>
_roots
.SelectMany(ent => ent.Children)
.Where(c => c.Kind == UnsNodeKind.Cluster && c.ClusterId == clusterId)
.SelectMany(c => c.Children)
.Where(a => a.Kind == UnsNodeKind.Area)
.SelectMany(a => a.Children)
.Where(l => l.Kind == UnsNodeKind.Line && l.EntityId is not null)
.Select(l => (l.EntityId!, l.DisplayName))
.ToList();
/// <summary>
/// Toggles a structural node's expansion. Equipment nodes are leaves (no expander),
/// so this path only ever fires for Enterprise/Cluster/Area/Line.
@@ -370,8 +358,8 @@
}
/// <summary>
/// Expands every structural node (Enterprise/Cluster/Area/Line). Equipment nodes
/// are intentionally left collapsed because expanding them would trigger lazy loads.
/// Expands every structural container node (Enterprise/Cluster/Area/Line) in the tree.
/// Equipment is a leaf node and has no expansion; <see cref="ExpandStructural"/> skips it.
/// </summary>
private void ExpandAll()
{