Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit e5c3ee8

Browse files
Removing the cancellationToken from RepositoryManager
1 parent de70b7f commit e5c3ee8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/GitHub.Api/Git/RepositoryManager.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Linq;
4-
using System.Threading;
54
using System.Threading.Tasks;
65

76
namespace GitHub.Unity
@@ -94,7 +93,6 @@ 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;
@@ -120,12 +118,11 @@ class RepositoryManager : IRepositoryManager
120118

121119
public RepositoryManager(IPlatform platform, ITaskManager taskManager, IGitConfig gitConfig,
122120
IRepositoryWatcher repositoryWatcher, IGitClient gitClient,
123-
IRepositoryPathConfiguration repositoryPaths, CancellationToken cancellationToken)
121+
IRepositoryPathConfiguration repositoryPaths)
124122
{
125123
this.repositoryPaths = repositoryPaths;
126124
this.platform = platform;
127125
this.taskManager = taskManager;
128-
this.cancellationToken = cancellationToken;
129126
this.gitClient = gitClient;
130127
this.watcher = repositoryWatcher;
131128
this.config = gitConfig;
@@ -143,7 +140,7 @@ public static RepositoryManager CreateInstance(IPlatform platform, ITaskManager
143140
var repositoryWatcher = new RepositoryWatcher(platform, repositoryPathConfiguration, taskManager.Token);
144141

145142
return new RepositoryManager(platform, taskManager, gitConfig, repositoryWatcher,
146-
gitClient, repositoryPathConfiguration, taskManager.Token);
143+
gitClient, repositoryPathConfiguration);
147144
}
148145

149146
public void Initialize()

0 commit comments

Comments
 (0)