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

Commit 0ed4781

Browse files
Removing other unused fields
1 parent 659f547 commit 0ed4781

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/GitHub.Api/Git/RepositoryManager.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ class RepositoryManager : IRepositoryManager
9595
{
9696
private readonly IGitConfig config;
9797
private readonly IGitClient gitClient;
98-
private readonly IPlatform platform;
9998
private readonly IRepositoryPathConfiguration repositoryPaths;
10099
private readonly IRepositoryWatcher watcher;
101100

@@ -110,12 +109,11 @@ class RepositoryManager : IRepositoryManager
110109
public event Action<Dictionary<string, ConfigBranch>> LocalBranchesUpdated;
111110
public event Action<Dictionary<string, ConfigRemote>, Dictionary<string, Dictionary<string, ConfigBranch>>> RemoteBranchesUpdated;
112111

113-
public RepositoryManager(IPlatform platform, IGitConfig gitConfig,
112+
public RepositoryManager(IGitConfig gitConfig,
114113
IRepositoryWatcher repositoryWatcher, IGitClient gitClient,
115114
IRepositoryPathConfiguration repositoryPaths)
116115
{
117116
this.repositoryPaths = repositoryPaths;
118-
this.platform = platform;
119117
this.gitClient = gitClient;
120118
this.watcher = repositoryWatcher;
121119
this.config = gitConfig;
@@ -132,7 +130,7 @@ public static RepositoryManager CreateInstance(IPlatform platform, ITaskManager
132130

133131
var repositoryWatcher = new RepositoryWatcher(platform, repositoryPathConfiguration, taskManager.Token);
134132

135-
return new RepositoryManager(platform, gitConfig, repositoryWatcher,
133+
return new RepositoryManager(gitConfig, repositoryWatcher,
136134
gitClient, repositoryPathConfiguration);
137135
}
138136

0 commit comments

Comments
 (0)