diff --git a/Modules/Account/Sources/Account/FeedIdentifier.swift b/Modules/Account/Sources/Account/FeedIdentifier.swift index ea30197e2..e38aaff48 100644 --- a/Modules/Account/Sources/Account/FeedIdentifier.swift +++ b/Modules/Account/Sources/Account/FeedIdentifier.swift @@ -14,13 +14,11 @@ public protocol FeedIdentifiable { public enum FeedIdentifier: CustomStringConvertible, Hashable, Equatable { case smartFeed(String) // String is a unique identifier - case script(String) // String is a unique identifier case webFeed(String, String) // accountID, webFeedID case folder(String, String) // accountID, folderName private struct TypeName { static let smartFeed = "smartFeed" - static let script = "script" static let feed = "feed" static let folder = "folder" } @@ -37,8 +35,6 @@ public enum FeedIdentifier: CustomStringConvertible, Hashable, Equatable { switch self { case .smartFeed: return TypeName.smartFeed - case .script: - return TypeName.script case .webFeed: return TypeName.feed case .folder: @@ -50,8 +46,6 @@ public enum FeedIdentifier: CustomStringConvertible, Hashable, Equatable { switch self { case .smartFeed(let id): return "\(typeName): \(id)" - case .script(let id): - return "\(typeName): \(id)" case .webFeed(let accountID, let webFeedID): return "\(typeName): \(accountID)_\(webFeedID)" case .folder(let accountID, let folderName): @@ -65,8 +59,6 @@ public enum FeedIdentifier: CustomStringConvertible, Hashable, Equatable { switch self { case .smartFeed(let id): d[Key.id] = id - case .script(let id): - d[Key.id] = id case .webFeed(let accountID, let webFeedID): d[Key.accountID] = accountID d[Key.feedID] = webFeedID @@ -89,11 +81,6 @@ public enum FeedIdentifier: CustomStringConvertible, Hashable, Equatable { return nil } self = FeedIdentifier.smartFeed(id) - case TypeName.script: - guard let id = userInfo[Key.id] else { - return nil - } - self = FeedIdentifier.script(id) case TypeName.feed: guard let accountID = userInfo[Key.accountID], let webFeedID = userInfo[Key.feedID] else { return nil