cleanup
This commit is contained in:
parent
3780c3a167
commit
203f50d95b
@ -56,11 +56,10 @@ public class AXorcist {
|
||||
// - handleCollectAll: AXorcist+ActionHandlers.swift
|
||||
// - handleBatchCommands: AXorcist+BatchHandler.swift
|
||||
|
||||
// handleExtractText method is implemented in AXorcist+ActionHandlers.swift
|
||||
|
||||
// handleBatchCommands method is implemented in AXorcist+BatchHandler.swift
|
||||
|
||||
// handleCollectAll method is implemented in AXorcist+ActionHandlers.swift
|
||||
// Handler methods are implemented in extension files:
|
||||
// - handleExtractText: AXorcist+ActionHandlers.swift
|
||||
// - handleBatchCommands: AXorcist+BatchHandler.swift
|
||||
// - handleCollectAll: AXorcist+CollectAllHandler.swift
|
||||
|
||||
// MARK: - Path Navigation
|
||||
|
||||
|
||||
@ -236,15 +236,6 @@ public class AXObserverCenter {
|
||||
}
|
||||
}
|
||||
|
||||
// Old addObserver and removeObserver are effectively replaced by subscribe/unsubscribe and internal setup/cleanup.
|
||||
// They are removed to avoid confusion.
|
||||
/*
|
||||
/// Add a notification observer for a specific process and notification key
|
||||
public func addObserver(pid: pid_t, notification: AXNotification) -> AXError { ... }
|
||||
/// Remove a notification observer
|
||||
public func removeObserver(pid: pid_t, notification: AXNotification) -> AXError { ... }
|
||||
*/
|
||||
|
||||
/// Remove all observers and all subscriptions.
|
||||
@MainActor
|
||||
public func removeAllObservers() {
|
||||
|
||||
@ -211,11 +211,6 @@ public struct Element: Equatable, Hashable {
|
||||
// (e.g., children, parameterizedAttribute, briefDescription, generatePathString, static factories)
|
||||
// Action methods have been moved to Element+Actions.swift
|
||||
|
||||
// @MainActor public var children: [Element]? { ... }
|
||||
|
||||
// @MainActor
|
||||
// public func generatePathString() -> String { ... }
|
||||
|
||||
// MARK: - Attribute Settability Check
|
||||
@MainActor
|
||||
public func isAttributeSettable(named attributeName: String) -> Bool {
|
||||
|
||||
@ -125,8 +125,9 @@ public enum AXPermissions {
|
||||
continuation.yield(currentStatus)
|
||||
}
|
||||
}
|
||||
// Ensure the timer is added to the main run loop
|
||||
if let strongTimer = Self.axPermissionTimer {
|
||||
RunLoop.main.add(strongTimer, forMode: .common) // Use RunLoop.main
|
||||
RunLoop.main.add(strongTimer, forMode: .common)
|
||||
}
|
||||
|
||||
continuation.onTermination = { @Sendable _ in
|
||||
|
||||
Loading…
Reference in New Issue
Block a user