mirror of
https://github.com/yattee/yattee.git
synced 2026-11-04 02:47:18 +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:
@@ -12,13 +12,6 @@ import Foundation
|
||||
/// Each provider implementation handles a specific subscription source.
|
||||
@MainActor
|
||||
protocol SubscriptionProvider: Sendable {
|
||||
/// The data context this provider serves.
|
||||
///
|
||||
/// A context rather than a backend type: an instance can hold several
|
||||
/// accounts, so "which Invidious" is no longer enough to identify a
|
||||
/// provider — each account gets its own, with its own cache.
|
||||
var context: DataContext { get }
|
||||
|
||||
/// Fetches all subscriptions from the provider.
|
||||
/// - Returns: Array of channels the user is subscribed to.
|
||||
func fetchSubscriptions() async throws -> [Channel]
|
||||
|
||||
Reference in New Issue
Block a user