mirror of
https://github.com/yattee/yattee.git
synced 2026-10-23 21:22:53 +00:00
Remove dead code found by Periphery on all platforms
Delete declarations that Periphery reports unused on every platform that compiles them (iOS, macOS, tvOS), including nine views used only by their own previews. Platform-gated code still used on another platform, device- only MPV render paths, migration models, CloudKit record names, App Intents metadata and unused parameters are kept.
This commit is contained in:
@@ -385,21 +385,10 @@ actor PipedAPI: InstanceAPI {
|
||||
return response.map { $0.toPlaylist() }
|
||||
}
|
||||
|
||||
/// Fetches a user playlist with its videos.
|
||||
/// - Parameters:
|
||||
/// - id: The playlist ID (UUID)
|
||||
/// - instance: The Piped instance
|
||||
/// - authToken: The auth token from login
|
||||
/// - Returns: Playlist with videos
|
||||
func userPlaylist(id: String, instance: Instance, authToken: String) async throws -> Playlist {
|
||||
try await userPlaylistSnapshot(id: id, instance: instance, authToken: authToken).playlist
|
||||
}
|
||||
|
||||
/// Fetches a user playlist along with the per-entry identities needed to
|
||||
/// mutate it.
|
||||
///
|
||||
/// Same request as ``userPlaylist(id:instance:authToken:)`` — that one is a
|
||||
/// thin wrapper over this. Piped has no per-entry token, so entries are
|
||||
/// Piped has no per-entry token, so entries are
|
||||
/// addressed by their position in this fetch and are only valid until the
|
||||
/// playlist next changes.
|
||||
/// - Parameters:
|
||||
|
||||
Reference in New Issue
Block a user