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

Commit 492be35

Browse files
Removing NeedsLoad as it's not used anymore
1 parent 9fd0c2d commit 492be35

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/GitHub.Api/Authentication/IKeychain.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public interface IKeychain
1616
Connection[] Connections { get; }
1717
IList<UriString> Hosts { get; }
1818
bool HasKeys { get; }
19-
bool NeedsLoad { get; }
2019
void SetToken(UriString host, string token);
2120

2221
event Action ConnectionsChanged;

src/GitHub.Api/Authentication/Keychain.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,5 @@ private void UpdateConnections(Connection[] conns)
323323
public Connection[] Connections => connections.Values.ToArray();
324324
public IList<UriString> Hosts => connections.Keys.ToArray();
325325
public bool HasKeys => connections.Any();
326-
public bool NeedsLoad => HasKeys && !string.IsNullOrEmpty(FindOrCreateAdapter(connections.First().Value.Host).Credential?.Token);
327326
}
328327
}

0 commit comments

Comments
 (0)