From 0620ef58d2ee3a8923819dbf6e66e2df95bf83ef Mon Sep 17 00:00:00 2001 From: Lumaa Date: Fri, 29 Mar 2024 18:35:23 +0100 Subject: [PATCH] Optimized --- Threaded/Data/Content/TimelineFilter.swift | 32 ---------------------- 1 file changed, 32 deletions(-) diff --git a/Threaded/Data/Content/TimelineFilter.swift b/Threaded/Data/Content/TimelineFilter.swift index 5aaa068..bc5233f 100644 --- a/Threaded/Data/Content/TimelineFilter.swift +++ b/Threaded/Data/Content/TimelineFilter.swift @@ -16,17 +16,6 @@ public enum RemoteTimelineFilter: String, CaseIterable, Hashable, Equatable { "timeline.trending" } } - - public func iconName() -> String { - switch self { - case .federated: - "globe.americas" - case .local: - "person.2" - case .trending: - "chart.line.uptrend.xyaxis" - } - } } public enum TimelineFilter: Hashable, Equatable { @@ -105,27 +94,6 @@ public enum TimelineFilter: Hashable, Equatable { } } - public func iconName() -> String? { - switch self { - case .latest: - "arrow.counterclockwise" - case .federated: - "globe.americas" - case .local: - "person.2" - case .trending: - "chart.line.uptrend.xyaxis" - case .home: - "house" - case .list: - "list.bullet" - case .remoteLocal: - "dot.radiowaves.right" - default: - nil - } - } - public func endpoint(sinceId: String?, maxId: String?, minId: String?, offset: Int?) -> Endpoint { switch self { case .federated: return Timelines.pub(sinceId: sinceId, maxId: maxId, minId: minId, local: false)