From ad90863c6fefbdb2d3ef46a6136964ca4522ade2 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Thu, 25 Apr 2024 12:58:05 -0700 Subject: [PATCH] Remove superfluous OAuthAuthorizationCodeGrantRequesting protocol. --- .../AccountDelegates/FeedlyAccountDelegate+OAuth.swift | 2 +- .../Sources/Account/Feedly/OAuthAcessTokenRefreshing.swift | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Account/Sources/Account/AccountDelegates/FeedlyAccountDelegate+OAuth.swift b/Account/Sources/Account/AccountDelegates/FeedlyAccountDelegate+OAuth.swift index 608001356..1a014e5f6 100644 --- a/Account/Sources/Account/AccountDelegates/FeedlyAccountDelegate+OAuth.swift +++ b/Account/Sources/Account/AccountDelegates/FeedlyAccountDelegate+OAuth.swift @@ -61,7 +61,7 @@ extension FeedlyAccountDelegate { } } -extension FeedlyAccountDelegate: OAuthAccessTokenRefreshing { +extension FeedlyAccountDelegate { func refreshAccessToken(with refreshToken: String, client: OAuthAuthorizationClient) async throws -> OAuthAuthorizationGrant { diff --git a/Account/Sources/Account/Feedly/OAuthAcessTokenRefreshing.swift b/Account/Sources/Account/Feedly/OAuthAcessTokenRefreshing.swift index a40b9b84a..386a859c7 100644 --- a/Account/Sources/Account/Feedly/OAuthAcessTokenRefreshing.swift +++ b/Account/Sources/Account/Feedly/OAuthAcessTokenRefreshing.swift @@ -28,9 +28,3 @@ public struct OAuthRefreshAccessTokenRequest: Encodable, Sendable { self.clientSecret = client.secret } } - -/// Implemented by concrete types to perform the actual request. -protocol OAuthAccessTokenRefreshing: AnyObject { - - @MainActor func refreshAccessToken(with refreshToken: String, client: OAuthAuthorizationClient) async throws -> OAuthAuthorizationGrant -}