1
1
using System ;
2
2
using System . Collections . Generic ;
3
3
using System . Linq ;
4
- using System . Threading ;
5
4
using System . Threading . Tasks ;
6
5
7
6
namespace GitHub . Unity
@@ -94,7 +93,6 @@ public RepositoryPathConfiguration(NPath repositoryPath)
94
93
95
94
class RepositoryManager : IRepositoryManager
96
95
{
97
- private readonly CancellationToken cancellationToken ;
98
96
private readonly IGitConfig config ;
99
97
private readonly IGitClient gitClient ;
100
98
private readonly IPlatform platform ;
@@ -120,12 +118,11 @@ class RepositoryManager : IRepositoryManager
120
118
121
119
public RepositoryManager ( IPlatform platform , ITaskManager taskManager , IGitConfig gitConfig ,
122
120
IRepositoryWatcher repositoryWatcher , IGitClient gitClient ,
123
- IRepositoryPathConfiguration repositoryPaths , CancellationToken cancellationToken )
121
+ IRepositoryPathConfiguration repositoryPaths )
124
122
{
125
123
this . repositoryPaths = repositoryPaths ;
126
124
this . platform = platform ;
127
125
this . taskManager = taskManager ;
128
- this . cancellationToken = cancellationToken ;
129
126
this . gitClient = gitClient ;
130
127
this . watcher = repositoryWatcher ;
131
128
this . config = gitConfig ;
@@ -143,7 +140,7 @@ public static RepositoryManager CreateInstance(IPlatform platform, ITaskManager
143
140
var repositoryWatcher = new RepositoryWatcher ( platform , repositoryPathConfiguration , taskManager . Token ) ;
144
141
145
142
return new RepositoryManager ( platform , taskManager , gitConfig , repositoryWatcher ,
146
- gitClient , repositoryPathConfiguration , taskManager . Token ) ;
143
+ gitClient , repositoryPathConfiguration ) ;
147
144
}
148
145
149
146
public void Initialize ( )
0 commit comments