Optimized

This commit is contained in:
Lumaa 2024-03-29 18:35:23 +01:00
parent 0fa829e3a0
commit 0620ef58d2
1 changed files with 0 additions and 32 deletions

View File

@ -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)