Remove .script.

This commit is contained in:
Brent Simmons committed 2025-12-30 21:19:50 -08:00
1 parent 4321dd6861
commit fddd9525c6
1 file changed
-12
@@ -14,7 +14,6 @@ import Foundation
public enum SidebarItemIdentifier: CustomStringConvertible, Hashable, Equatable, Sendable {
case smartFeed(String) // String is a unique identifier
case script(String) // String is a unique identifier
case feed(String, String) // accountID, feedID
case folder(String, String) // accountID, folderName
@@ -38,8 +37,6 @@ public enum SidebarItemIdentifier: CustomStringConvertible, Hashable, Equatable,
switch self {
case .smartFeed:
return TypeName.smartFeed
case .script:
return TypeName.script
case .feed:
return TypeName.feed
case .folder:
@@ -51,8 +48,6 @@ public enum SidebarItemIdentifier: CustomStringConvertible, Hashable, Equatable,
switch self {
case .smartFeed(let id):
return "(typeName): \(id)"
case .script(let id):
return "(typeName): \(id)"
case .feed(let accountID, let feedID):
return "(typeName): \(accountID)_\(feedID)"
case .folder(let accountID, let folderName):
@@ -66,8 +61,6 @@ public enum SidebarItemIdentifier: CustomStringConvertible, Hashable, Equatable,
switch self {
case .smartFeed(let id):
d[Key.id] = id
case .script(let id):
d[Key.id] = id
case .feed(let accountID, let feedID):
d[Key.accountID] = accountID
d[Key.feedID] = feedID
@@ -90,11 +83,6 @@ public enum SidebarItemIdentifier: CustomStringConvertible, Hashable, Equatable,
return nil
}
self = .smartFeed(id)
case TypeName.script:
guard let id = userInfo[Key.id] else {
return nil
}
self = .script(id)
case TypeName.feed:
guard let accountID = userInfo[Key.accountID], let feedID = userInfo[Key.feedID] ?? userInfo[Key.oldFeedIDKey] else {
return nil