11using System ;
22using System . Collections . Generic ;
33using System . Linq ;
4- using System . Threading ;
54using System . Threading . Tasks ;
65
76namespace GitHub . Unity
@@ -94,13 +93,11 @@ public RepositoryPathConfiguration(NPath repositoryPath)
9493
9594 class RepositoryManager : IRepositoryManager
9695 {
97- private readonly CancellationToken cancellationToken ;
9896 private readonly IGitConfig config ;
9997 private readonly IGitClient gitClient ;
10098 private readonly IPlatform platform ;
10199 private readonly IRepositoryPathConfiguration repositoryPaths ;
102100 private readonly ITaskManager taskManager ;
103- private readonly IUsageTracker usageTracker ;
104101 private readonly IRepositoryWatcher watcher ;
105102
106103 private bool isBusy ;
@@ -119,23 +116,21 @@ class RepositoryManager : IRepositoryManager
119116 public event Action < string , string > OnRemoteBranchRemoved ;
120117 public event Action < GitStatus > OnStatusUpdated ;
121118
122- public RepositoryManager ( IPlatform platform , ITaskManager taskManager , IUsageTracker usageTracker , IGitConfig gitConfig ,
119+ public RepositoryManager ( IPlatform platform , ITaskManager taskManager , IGitConfig gitConfig ,
123120 IRepositoryWatcher repositoryWatcher , IGitClient gitClient ,
124- IRepositoryPathConfiguration repositoryPaths , CancellationToken cancellationToken )
121+ IRepositoryPathConfiguration repositoryPaths )
125122 {
126123 this . repositoryPaths = repositoryPaths ;
127124 this . platform = platform ;
128125 this . taskManager = taskManager ;
129- this . usageTracker = usageTracker ;
130- this . cancellationToken = cancellationToken ;
131126 this . gitClient = gitClient ;
132127 this . watcher = repositoryWatcher ;
133128 this . config = gitConfig ;
134129
135130 SetupWatcher ( ) ;
136131 }
137132
138- public static RepositoryManager CreateInstance ( IPlatform platform , ITaskManager taskManager , IUsageTracker usageTracker ,
133+ public static RepositoryManager CreateInstance ( IPlatform platform , ITaskManager taskManager ,
139134 IGitClient gitClient , NPath repositoryRoot )
140135 {
141136 var repositoryPathConfiguration = new RepositoryPathConfiguration ( repositoryRoot ) ;
@@ -144,8 +139,8 @@ public static RepositoryManager CreateInstance(IPlatform platform, ITaskManager
144139
145140 var repositoryWatcher = new RepositoryWatcher ( platform , repositoryPathConfiguration , taskManager . Token ) ;
146141
147- return new RepositoryManager ( platform , taskManager , usageTracker , gitConfig , repositoryWatcher ,
148- gitClient , repositoryPathConfiguration , taskManager . Token ) ;
142+ return new RepositoryManager ( platform , taskManager , gitConfig , repositoryWatcher ,
143+ gitClient , repositoryPathConfiguration ) ;
149144 }
150145
151146 public void Initialize ( )
0 commit comments