Skip to content

Commit 1fe9ecd

Browse files
committed
remove Observation support from SwiftOCA
1 parent f466f36 commit 1fe9ecd

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

Sources/SwiftOCA/OCC/ControlClasses/Root.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ import FoundationEssentials
2121
import Foundation
2222
#endif
2323

24-
open class OcaRoot: CustomStringConvertible, @unchecked
25-
Sendable,
26-
_OcaObjectKeyPathRepresentable, Observable
27-
{
24+
open class OcaRoot: CustomStringConvertible, @unchecked Sendable, _OcaObjectKeyPathRepresentable {
2825
typealias Root = OcaRoot
2926

3027
public internal(set) weak var connectionDelegate: Ocp1Connection?

Sources/SwiftOCA/OCP.1/Ocp1Connection.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,8 @@ public struct Ocp1ConnectionStatistics: Sendable, CustomStringConvertible {
206206

207207
private let CommandHandleBase = OcaUint32(100)
208208

209-
#if !canImport(Darwin)
210-
protocol Observable {}
211-
#endif
212-
213209
@OcaConnection
214-
open class Ocp1Connection: Observable, CustomStringConvertible {
210+
open class Ocp1Connection: CustomStringConvertible {
215211
package nonisolated static let MinimumPduSize = 1 /* SyncVal */ + Ocp1Header.HeaderSize
216212

217213
public internal(set) var options: Ocp1ConnectionOptions

0 commit comments

Comments
 (0)