Remove dead protocol.

This commit is contained in:
Max Goedjen 2025-09-06 19:34:01 -07:00
parent e5578260e9
commit 692059b833
No known key found for this signature in database

View File

@ -1,27 +0,0 @@
import Foundation
@objc public protocol ReleasesDownloaderProtocol {
func downloadReleases(with reply: @escaping (Data?, (any Error)?) -> Void)
}
extension ReleasesDownloaderProtocol {
func downloadReleases() async throws -> Data {
try await withCheckedThrowingContinuation { continuation in
downloadReleases { data, error in
if let error {
continuation.resume(throwing: error)
} else if let data {
continuation.resume(returning: data)
} else {
continuation.resume(throwing: NoDataError())
}
}
}
}
}
struct NoDataError: Error {}