mirror of
https://github.com/yattee/yattee.git
synced 2026-10-24 05:32: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:
@@ -118,20 +118,6 @@ final class ImageLoadingService: Sendable {
|
||||
|
||||
LoggingService.shared.info("Image cache cleared", category: .imageLoading)
|
||||
}
|
||||
|
||||
/// Returns the disk cache size in bytes.
|
||||
func diskCacheSize() -> Int {
|
||||
guard let dataCache = ImagePipeline.shared.configuration.dataCache as? DataCache else {
|
||||
return 0
|
||||
}
|
||||
return dataCache.totalSize
|
||||
}
|
||||
|
||||
/// Returns a formatted string of the disk cache size.
|
||||
func formattedDiskCacheSize() -> String {
|
||||
let size = diskCacheSize()
|
||||
return ByteCountFormatter.string(fromByteCount: Int64(size), countStyle: .file)
|
||||
}
|
||||
}
|
||||
|
||||
/// Pipeline delegate that normalizes Nuke's cache key by stripping per-request
|
||||
|
||||
Reference in New Issue
Block a user