diff --git a/Localizations/Localizable.strings b/Localizations/Localizable.strings index bc6508d..f85cffd 100644 --- a/Localizations/Localizable.strings +++ b/Localizations/Localizable.strings @@ -5,7 +5,6 @@ "add-identity.instance-url" = "Instance URL"; "add-identity.log-in" = "Log in"; "add-identity.browse-anonymously" = "Browse anonymously"; -"oauth.error.code-not-found" = "OAuth error: code not found"; "secondary-navigation.manage-accounts" = "Manage Accounts"; "secondary-navigation.lists" = "Lists"; "secondary-navigation.preferences" = "Preferences"; diff --git a/ServiceLayer/Sources/ServiceLayer/AuthenticationService.swift b/ServiceLayer/Sources/ServiceLayer/AuthenticationService.swift index e0c109f..dee2f5f 100644 --- a/ServiceLayer/Sources/ServiceLayer/AuthenticationService.swift +++ b/ServiceLayer/Sources/ServiceLayer/AuthenticationService.swift @@ -82,7 +82,7 @@ private extension AuthenticationService { static let website = URL(string: "https://metabolist.com/metatext")! } - enum OAuthError { + enum OAuthError: Error { case codeNotFound } @@ -102,12 +102,3 @@ private extension AuthenticationService { return authorizationURLComponents.url } } - -extension AuthenticationService.OAuthError: LocalizedError { - var errorDescription: String? { - switch self { - case .codeNotFound: - return NSLocalizedString("oauth.error.code-not-found", comment: "") - } - } -}