From 692059b833039f34bf4057794e6a0b7c05ddd057 Mon Sep 17 00:00:00 2001 From: Max Goedjen Date: Sat, 6 Sep 2025 19:34:01 -0700 Subject: [PATCH] Remove dead protocol. --- .../Brief/ReleasesDownloaderProtocol.swift | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100644 Sources/Packages/Sources/Brief/ReleasesDownloaderProtocol.swift diff --git a/Sources/Packages/Sources/Brief/ReleasesDownloaderProtocol.swift b/Sources/Packages/Sources/Brief/ReleasesDownloaderProtocol.swift deleted file mode 100644 index 118773c..0000000 --- a/Sources/Packages/Sources/Brief/ReleasesDownloaderProtocol.swift +++ /dev/null @@ -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 {}