Remove some no-longer-needed nonisolated(unsafe) marks for Loggers. (Not needed in Xcode 16.2b1.)

This commit is contained in:
Brent Simmons
2024-10-30 21:57:06 -07:00
parent 5bbffd8886
commit 3f0f2fc775
8 changed files with 8 additions and 8 deletions

View File

@@ -17,7 +17,7 @@ public struct AccountSyncError {
// OSLog is supposedly Sendable and will be annotated that way in the future:
// https://forums.developer.apple.com/forums/thread/747816
nonisolated(unsafe) private static let log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "Application")
private static let log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "Application")
public let account: Account
public let error: Error

View File

@@ -14,7 +14,7 @@ import os.log
public final class FeedFinder {
nonisolated(unsafe) private static let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "FeedFinder")
private static let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "FeedFinder")
public static func find(url: URL) async throws -> Set<FeedSpecifier> {

View File

@@ -15,7 +15,7 @@ public final class HTMLMetadataDownloader: Sendable {
static let shared = HTMLMetadataDownloader()
nonisolated(unsafe) private static let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "HTMLMetadataDownloader")
private static let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "HTMLMetadataDownloader")
private let debugLoggingEnabled = false
private let cache = HTMLMetadataCache()
private let attemptDatesLock = OSAllocatedUnfairLock(initialState: [String: Date]())

View File

@@ -12,7 +12,7 @@ import os
public final class HTMLLinkParser {
public private(set) var links = [HTMLLink]()
nonisolated(unsafe) private static let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "HTMLLinkParser")
private static let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "HTMLLinkParser")
private let parserData: ParserData
private let baseURL: URL?