From 96fdc6c837ca56862cc3a6c2075d7fddb4874126 Mon Sep 17 00:00:00 2001 From: Justin Mazzocchi <2831158+jzzocc@users.noreply.github.com> Date: Mon, 31 Aug 2020 12:01:37 -0700 Subject: [PATCH] Remove unneeded localization --- Localizations/Localizable.strings | 1 - .../Sources/ServiceLayer/AuthenticationService.swift | 11 +---------- 2 files changed, 1 insertion(+), 11 deletions(-) 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: "") - } - } -}