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

Commit 4316a6d

Browse files
committed
Don't need this anymore
1 parent e475eea commit 4316a6d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/GitHub.Api/Api/ApiClient.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static IApiClient Create(UriString repositoryUrl, IKeychain keychain, IAp
1212
var credentialStore = keychain.Connect(repositoryUrl);
1313
var hostAddress = HostAddress.Create(repositoryUrl);
1414

15-
return new ApiClient(repositoryUrl, keychain, credentialStore,
15+
return new ApiClient(repositoryUrl, keychain,
1616
new GitHubClient(appConfiguration.ProductHeader, credentialStore, hostAddress.ApiUri));
1717
}
1818

@@ -21,7 +21,6 @@ public static IApiClient Create(UriString repositoryUrl, IKeychain keychain, IAp
2121
public UriString OriginalUrl { get; }
2222

2323
private readonly IKeychain keychain;
24-
private readonly ICredentialStore credentialStore;
2524
private readonly IGitHubClient githubClient;
2625
private readonly ILoginManager loginManager;
2726
private static readonly SemaphoreSlim sem = new SemaphoreSlim(1);
@@ -30,7 +29,7 @@ public static IApiClient Create(UriString repositoryUrl, IKeychain keychain, IAp
3029
string owner;
3130
bool? isEnterprise;
3231

33-
public ApiClient(UriString hostUrl, IKeychain keychain, ICredentialStore credentialStore, IGitHubClient githubClient)
32+
public ApiClient(UriString hostUrl, IKeychain keychain, IGitHubClient githubClient)
3433
{
3534
Guard.ArgumentNotNull(hostUrl, nameof(hostUrl));
3635
Guard.ArgumentNotNull(keychain, nameof(keychain));
@@ -39,7 +38,6 @@ public ApiClient(UriString hostUrl, IKeychain keychain, ICredentialStore credent
3938
HostAddress = HostAddress.Create(hostUrl);
4039
OriginalUrl = hostUrl;
4140
this.keychain = keychain;
42-
this.credentialStore = credentialStore;
4341
this.githubClient = githubClient;
4442
loginManager = new LoginManager(keychain, ApplicationInfo.ClientId, ApplicationInfo.ClientSecret);
4543
}

0 commit comments

Comments
 (0)