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?

View File

@@ -12,7 +12,7 @@ import Web
struct CacheCleaner {
nonisolated(unsafe) static let log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "CacheCleaner")
static let log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "CacheCleaner")
@MainActor static func purgeIfNecessary() {

View File

@@ -12,7 +12,7 @@ import Account
final class ExtensionFeedAddRequestFile: NSObject, NSFilePresenter, Sendable {
nonisolated(unsafe) private static let log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "extensionFeedAddRequestFile")
private static let log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "extensionFeedAddRequestFile")
private static let filePath: String = {
let appGroup = Bundle.main.object(forInfoDictionaryKey: "AppGroup") as! String

View File

@@ -37,7 +37,7 @@ final class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationC
}
}
nonisolated(unsafe) let log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "Application")
let log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "Application")
var userNotificationManager: UserNotificationManager!
var extensionContainersFile: ExtensionContainersFile!

View File

@@ -11,7 +11,7 @@ import os.log
struct ErrorHandler {
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 static func present(_ viewController: UIViewController) -> @MainActor (Error) -> () {