mirror of
https://github.com/yattee/yattee.git
synced 2026-10-30 00:17:16 +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:
@@ -179,16 +179,6 @@ final class BasicAuthCredentialsManager: InstanceCredentialsManager {
|
||||
return hasCreds
|
||||
}
|
||||
|
||||
/// Refreshes the logged-in status for an instance.
|
||||
/// Call this when the view appears to ensure UI is in sync.
|
||||
func refreshLoginStatus(for instance: Instance) {
|
||||
if credentials(for: instance) != nil {
|
||||
loggedInInstanceIDs.insert(instance.id)
|
||||
} else {
|
||||
loggedInInstanceIDs.remove(instance.id)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - InstanceCredentialsManager Protocol
|
||||
|
||||
/// Stores a credential for an instance (protocol conformance).
|
||||
|
||||
Reference in New Issue
Block a user