diff --git a/src/PlanViewer.App/Controls/QueryStoreGridControl.axaml.cs b/src/PlanViewer.App/Controls/QueryStoreGridControl.axaml.cs index 9911142..77ff44a 100644 --- a/src/PlanViewer.App/Controls/QueryStoreGridControl.axaml.cs +++ b/src/PlanViewer.App/Controls/QueryStoreGridControl.axaml.cs @@ -5,12 +5,10 @@ using System.Linq; using System.Runtime.CompilerServices; using System.Threading; -using Avalonia; using Avalonia.Controls; using Avalonia.Controls.Primitives; using Avalonia.Interactivity; using Avalonia.Media; -using Microsoft.Data.SqlClient; using PlanViewer.Core.Interfaces; using PlanViewer.Core.Models; using PlanViewer.App.Dialogs; @@ -312,8 +310,6 @@ private async System.Threading.Tasks.Task FetchGroupedPlansAsync( LoadButton.IsEnabled = true; SelectToggleButton.Content = "Select All"; - - UpdateStatusText(); UpdateBarRatios(); @@ -322,29 +318,6 @@ private async System.Threading.Tasks.Task FetchGroupedPlansAsync( _ = FetchGroupedWaitStatsAsync(_slicerStartUtc.Value, _slicerEndUtc.Value, ct); } - /// - /// Recursively expands a row and all its children, inserting them into _filteredRows. - /// - private void ExpandRowRecursive(QueryStoreRow row) - { - if (!row.HasChildren) return; - row.IsExpanded = true; - - var idx = _filteredRows.IndexOf(row); - if (idx < 0) return; - - var insertAt = idx + 1; - foreach (var child in row.Children) - { - _filteredRows.Insert(insertAt, child); - insertAt++; - } - - // Recurse into each child that has children - foreach (var child in row.Children) - ExpandRowRecursive(child); - } - /// /// Fetches per-plan wait stats for all real plan IDs found in the grouped hierarchy, /// assigns them to leaf rows, then consolidates upward to intermediate and root rows.