Address code review: document rootNodePropName param, use discard for unused key

Co-authored-by: LoogLong <86428208+LoogLong@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-03 14:05:28 +00:00
parent 4fab6d9747
commit e3030cb0a0

View File

@@ -315,8 +315,8 @@ public class AnimGraphViewModel
/// <summary>
/// Creates an <see cref="AnimGraphLayer"/> for a state machine state sub-graph
/// and stores it in <see cref="AnimGraphViewModel.StateSubGraphs"/> keyed by the
/// root node's property name (from StateRootNodeIndex).
/// and stores it in <see cref="AnimGraphViewModel.StateSubGraphs"/> keyed by
/// <paramref name="rootNodePropName"/> (the root node's property name from StateRootNodeIndex).
/// </summary>
private static void AddStateSubGraph(AnimGraphViewModel vm, List<AnimGraphNode> nodes, string rootNodePropName, int index)
{
@@ -353,7 +353,7 @@ public class AnimGraphViewModel
}
// Rename state sub-graphs whose nodes belong to a state machine
foreach (var (key, layer) in vm.StateSubGraphs)
foreach (var (_, layer) in vm.StateSubGraphs)
{
var smName = string.Empty;
foreach (var node in layer.Nodes)