@@ -38,7 +38,6 @@ internal class ReportViewModel : ServerViewModel
38
38
private readonly IChangeDependencyRiskStatusHandler changeDependencyRiskStatusHandler ;
39
39
private readonly IMessageBox messageBox ;
40
40
private readonly ITelemetryManager telemetryManager ;
41
- private readonly IThreadHandling threadHandling ;
42
41
private readonly IDependencyRisksStore dependencyRisksStore ;
43
42
private readonly ILocalHotspotsStore hotspotsStore ;
44
43
private readonly object @lock = new ( ) ;
@@ -60,7 +59,6 @@ public ReportViewModel(
60
59
this . changeDependencyRiskStatusHandler = changeDependencyRiskStatusHandler ;
61
60
this . messageBox = messageBox ;
62
61
this . telemetryManager = telemetryManager ;
63
- this . threadHandling = threadHandling ;
64
62
65
63
threadHandling . RunOnUIThread ( ( ) => { BindingOperations . EnableCollectionSynchronization ( GroupViewModels , @lock ) ; } ) ;
66
64
hotspotsStore . IssuesChanged += HotspotsStore_IssuesChanged ;
@@ -167,7 +165,7 @@ private void InitializeHotspots()
167
165
RaisePropertyChanged ( nameof ( HasGroups ) ) ;
168
166
}
169
167
170
- private ObservableCollection < IGroupViewModel > GetGroupViewModel ( IEnumerable < IIssueViewModel > issueViewModels )
168
+ private static ObservableCollection < IGroupViewModel > GetGroupViewModel ( IEnumerable < IIssueViewModel > issueViewModels )
171
169
{
172
170
var issuesByFileGrouping = issueViewModels . GroupBy ( vm => vm . FilePath ) ;
173
171
var groupViewModels = new ObservableCollection < IGroupViewModel > ( ) ;
0 commit comments