Skip to content

Commit 11deb4e

Browse files
committed
remove debug trace logging, keep clear inside if block
1 parent d07a49b commit 11deb4e

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/ProfileExplorerUI/MainWindowPanels.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,19 +1028,17 @@ private async Task SetupPanels() {
10281028
}
10291029

10301030
private async Task SetupSectionPanel() {
1031-
Trace.WriteLine($"SetupSectionPanel: MainSummary={SectionPanel.MainSummary?.ModuleName ?? "NULL"}, Docs={sessionState_.Documents.Count}");
1032-
10331031
if (SectionPanel.MainSummary == null) {
10341032
SectionPanel.CompilerInfo = compilerInfo_;
10351033
SectionPanel.Session = this;
10361034

1037-
// Clear stale module summaries from any previous session.
1035+
// Clear stale module summaries from any previous session
1036+
// before adding the new ones.
10381037
SectionPanel.ClearModuleSummaries();
10391038

10401039
foreach (var doc in sessionState_.Documents) {
10411040
if (doc != sessionState_.MainDocument &&
10421041
doc != sessionState_.DiffDocument) {
1043-
// Add optional modules, usually used for profiling.
10441042
SectionPanel.AddModuleSummary(doc.Summary);
10451043
}
10461044
}

0 commit comments

Comments
 (0)