Removes dead code

This commit is contained in:
Stuart Breckenridge 2020-10-27 17:56:42 +08:00
parent ef057d2f93
commit 7bd7dd892e
No known key found for this signature in database
GPG Key ID: 802A426F493CA19C
1 changed files with 0 additions and 57 deletions

View File

@ -17,63 +17,6 @@ import UIKit
extension AccountType { extension AccountType {
// TODO: Move this to the Account Package. // TODO: Move this to the Account Package.
// Colors
#if os(macOS)
func iconColor() -> NSColor {
switch self {
case .onMyMac:
return NSColor(named: "localColor")!
case .bazQux:
return NSColor(named: "bazquxColor")!
case .cloudKit:
return NSColor(named: "cloudkitColor")!
case .feedWrangler:
return NSColor(named: "feedwranglerColor")!
case .feedbin:
return NSColor(named: "feedbinColor")!
case .feedly:
return NSColor(named: "feedlyColor")!
case .freshRSS:
return NSColor(named: "freshRSSColor")!
case .inoreader:
return NSColor(named: "inoreaderColor")!
case .newsBlur:
return NSColor(named: "newsblurColor")!
case .theOldReader:
return NSColor(named: "theoldreaderColor")!
default:
return NSColor.blue
}
}
#else
func iconColor() -> UIColor {
switch self {
case .onMyMac:
return UIColor(named: "localColor")!
case .bazQux:
return UIColor(named: "bazquxColor")!
case .cloudKit:
return UIColor(named: "cloudkitColor")!
case .feedWrangler:
return UIColor(named: "feedwranglerColor")!
case .feedbin:
return UIColor(named: "feedbinColor")!
case .feedly:
return UIColor(named: "feedlyColor")!
case .freshRSS:
return UIColor(named: "freshRSSColor")!
case .inoreader:
return UIColor(named: "inoreaderColor")!
case .newsBlur:
return UIColor(named: "newsblurColor")!
case .theOldReader:
return UIColor(named: "theoldreaderColor")!
default:
return UIColor.blue
}
}
#endif
func localizedAccountName() -> String { func localizedAccountName() -> String {