Remove unneeded localization

This commit is contained in:
Justin Mazzocchi 2020-08-31 12:01:37 -07:00
parent 2ca0dfe251
commit 96fdc6c837
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C
2 changed files with 1 additions and 11 deletions

View file

@ -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";

View file

@ -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: "")
}
}
}