diff --git a/Sources/Model/Data Flow/Binding.swift b/Sources/Model/Data Flow/Binding.swift index 9b3f9b6..2431c85 100644 --- a/Sources/Model/Data Flow/Binding.swift +++ b/Sources/Model/Data Flow/Binding.swift @@ -65,8 +65,6 @@ public struct Binding { /// The closure for getting the value. private let getValue: () -> Value - /// The cached value for comparison purposes. - private let value: Value /// The closure for settings the value. private let setValue: (Value) -> Void /// Handlers observing whether the binding changes. @@ -89,7 +87,6 @@ public struct Binding { /// - set: The closure for setting the value. public init(get: @escaping () -> Value, set: @escaping (Value) -> Void) { self.getValue = get - self.value = get() self.setValue = set } @@ -115,18 +112,6 @@ public struct Binding { } -extension Binding: Equatable where Value: Equatable { - - /// Whether two binding values were equal when they were initialized. - /// - Parameters: - /// - lhs: The first binding. - /// - rhs: The second binding. - public static func == (lhs: Self, rhs: Self) -> Bool { - lhs.value == rhs.value - } - -} - /// Extend bindings. extension Binding where Value: MutableCollection {