diff --git a/AG/AttributeGraph.xcframework/ios-arm64-arm64e/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/arm64-apple-ios.swiftinterface b/AG/AttributeGraph.xcframework/ios-arm64-arm64e/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/arm64-apple-ios.swiftinterface index e66a0f53..331560bc 100644 --- a/AG/AttributeGraph.xcframework/ios-arm64-arm64e/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/arm64-apple-ios.swiftinterface +++ b/AG/AttributeGraph.xcframework/ios-arm64-arm64e/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/arm64-apple-ios.swiftinterface @@ -131,11 +131,6 @@ extension AGWeakAttribute { set { self = AGWeakAttribute(newValue) } - _modify { - var value = attribute - yield &value - attribute = value - } } } @@ -179,7 +174,7 @@ public struct WeakAttribute { public init(_ attribute: AttributeGraph.Attribute) public init(_ attribute: AttributeGraph.Attribute?) public var wrappedValue: Value? { get } - public var projectedValue: AttributeGraph.Attribute?{ get set _modify } + public var projectedValue: AttributeGraph.Attribute?{ get set } public subscript(dynamicMember keyPath: Swift.KeyPath) -> AttributeGraph.Attribute? { get } public var attribute: AttributeGraph.Attribute? { get set _modify } public var value: Value? { get } @@ -206,7 +201,7 @@ public struct AnyOptionalAttribute { public init(_ attribute: AttributeGraph.OptionalAttribute) public var identifier: AGAttribute public static var current: AttributeGraph.AnyOptionalAttribute { get } - public var attribute: AGAttribute? { get set _modify } + public var attribute: AGAttribute? { get set } public func map(_ body: (AGAttribute) -> Value) -> Value? public func unsafeCast(to type: Value.Type) -> AttributeGraph.OptionalAttribute } @@ -229,7 +224,7 @@ public struct OptionalAttribute { public init(_ attribute: AttributeGraph.Attribute) public init(_ attribute: AttributeGraph.Attribute?) public init(_ weakAttribute: AttributeGraph.WeakAttribute) - public var attribute: AttributeGraph.Attribute? { get set _modify } + public var attribute: AttributeGraph.Attribute? { get set } public var value: Value? { get } public func changedValue(options: AGValueOptions = []) -> (value: Value, changed: Bool)? public func map(_ body: (AttributeGraph.Attribute) -> V) -> V? @@ -264,7 +259,6 @@ public struct IndirectAttribute { public var dependency: AGAttribute? { get nonmutating set - nonmutating _modify } public var value: Value { get diff --git a/AG/AttributeGraph.xcframework/ios-arm64-arm64e/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/arm64e-apple-ios.swiftinterface b/AG/AttributeGraph.xcframework/ios-arm64-arm64e/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/arm64e-apple-ios.swiftinterface index e66a0f53..331560bc 100644 --- a/AG/AttributeGraph.xcframework/ios-arm64-arm64e/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/arm64e-apple-ios.swiftinterface +++ b/AG/AttributeGraph.xcframework/ios-arm64-arm64e/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/arm64e-apple-ios.swiftinterface @@ -131,11 +131,6 @@ extension AGWeakAttribute { set { self = AGWeakAttribute(newValue) } - _modify { - var value = attribute - yield &value - attribute = value - } } } @@ -179,7 +174,7 @@ public struct WeakAttribute { public init(_ attribute: AttributeGraph.Attribute) public init(_ attribute: AttributeGraph.Attribute?) public var wrappedValue: Value? { get } - public var projectedValue: AttributeGraph.Attribute?{ get set _modify } + public var projectedValue: AttributeGraph.Attribute?{ get set } public subscript(dynamicMember keyPath: Swift.KeyPath) -> AttributeGraph.Attribute? { get } public var attribute: AttributeGraph.Attribute? { get set _modify } public var value: Value? { get } @@ -206,7 +201,7 @@ public struct AnyOptionalAttribute { public init(_ attribute: AttributeGraph.OptionalAttribute) public var identifier: AGAttribute public static var current: AttributeGraph.AnyOptionalAttribute { get } - public var attribute: AGAttribute? { get set _modify } + public var attribute: AGAttribute? { get set } public func map(_ body: (AGAttribute) -> Value) -> Value? public func unsafeCast(to type: Value.Type) -> AttributeGraph.OptionalAttribute } @@ -229,7 +224,7 @@ public struct OptionalAttribute { public init(_ attribute: AttributeGraph.Attribute) public init(_ attribute: AttributeGraph.Attribute?) public init(_ weakAttribute: AttributeGraph.WeakAttribute) - public var attribute: AttributeGraph.Attribute? { get set _modify } + public var attribute: AttributeGraph.Attribute? { get set } public var value: Value? { get } public func changedValue(options: AGValueOptions = []) -> (value: Value, changed: Bool)? public func map(_ body: (AttributeGraph.Attribute) -> V) -> V? @@ -264,7 +259,6 @@ public struct IndirectAttribute { public var dependency: AGAttribute? { get nonmutating set - nonmutating _modify } public var value: Value { get diff --git a/AG/AttributeGraph.xcframework/ios-arm64-x86_64-simulator/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/arm64-apple-ios-simulator.swiftinterface b/AG/AttributeGraph.xcframework/ios-arm64-x86_64-simulator/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/arm64-apple-ios-simulator.swiftinterface index 77913eef..bdab92ee 100644 --- a/AG/AttributeGraph.xcframework/ios-arm64-x86_64-simulator/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/arm64-apple-ios-simulator.swiftinterface +++ b/AG/AttributeGraph.xcframework/ios-arm64-x86_64-simulator/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/arm64-apple-ios-simulator.swiftinterface @@ -131,11 +131,6 @@ extension AGWeakAttribute { set { self = AGWeakAttribute(newValue) } - _modify { - var value = attribute - yield &value - attribute = value - } } } @@ -179,7 +174,7 @@ public struct WeakAttribute { public init(_ attribute: AttributeGraph.Attribute) public init(_ attribute: AttributeGraph.Attribute?) public var wrappedValue: Value? { get } - public var projectedValue: AttributeGraph.Attribute?{ get set _modify } + public var projectedValue: AttributeGraph.Attribute?{ get set } public subscript(dynamicMember keyPath: Swift.KeyPath) -> AttributeGraph.Attribute? { get } public var attribute: AttributeGraph.Attribute? { get set _modify } public var value: Value? { get } @@ -206,7 +201,7 @@ public struct AnyOptionalAttribute { public init(_ attribute: AttributeGraph.OptionalAttribute) public var identifier: AGAttribute public static var current: AttributeGraph.AnyOptionalAttribute { get } - public var attribute: AGAttribute? { get set _modify } + public var attribute: AGAttribute? { get set } public func map(_ body: (AGAttribute) -> Value) -> Value? public func unsafeCast(to type: Value.Type) -> AttributeGraph.OptionalAttribute } @@ -229,7 +224,7 @@ public struct OptionalAttribute { public init(_ attribute: AttributeGraph.Attribute) public init(_ attribute: AttributeGraph.Attribute?) public init(_ weakAttribute: AttributeGraph.WeakAttribute) - public var attribute: AttributeGraph.Attribute? { get set _modify } + public var attribute: AttributeGraph.Attribute? { get set } public var value: Value? { get } public func changedValue(options: AGValueOptions = []) -> (value: Value, changed: Bool)? public func map(_ body: (AttributeGraph.Attribute) -> V) -> V? @@ -264,7 +259,6 @@ public struct IndirectAttribute { public var dependency: AGAttribute? { get nonmutating set - nonmutating _modify } public var value: Value { get diff --git a/AG/AttributeGraph.xcframework/ios-arm64-x86_64-simulator/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/AG/AttributeGraph.xcframework/ios-arm64-x86_64-simulator/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/x86_64-apple-ios-simulator.swiftinterface index ce1bfa9c..cec989d5 100644 --- a/AG/AttributeGraph.xcframework/ios-arm64-x86_64-simulator/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +++ b/AG/AttributeGraph.xcframework/ios-arm64-x86_64-simulator/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/x86_64-apple-ios-simulator.swiftinterface @@ -131,11 +131,6 @@ extension AGWeakAttribute { set { self = AGWeakAttribute(newValue) } - _modify { - var value = attribute - yield &value - attribute = value - } } } @@ -179,7 +174,7 @@ public struct WeakAttribute { public init(_ attribute: AttributeGraph.Attribute) public init(_ attribute: AttributeGraph.Attribute?) public var wrappedValue: Value? { get } - public var projectedValue: AttributeGraph.Attribute?{ get set _modify } + public var projectedValue: AttributeGraph.Attribute?{ get set } public subscript(dynamicMember keyPath: Swift.KeyPath) -> AttributeGraph.Attribute? { get } public var attribute: AttributeGraph.Attribute? { get set _modify } public var value: Value? { get } @@ -206,7 +201,7 @@ public struct AnyOptionalAttribute { public init(_ attribute: AttributeGraph.OptionalAttribute) public var identifier: AGAttribute public static var current: AttributeGraph.AnyOptionalAttribute { get } - public var attribute: AGAttribute? { get set _modify } + public var attribute: AGAttribute? { get set } public func map(_ body: (AGAttribute) -> Value) -> Value? public func unsafeCast(to type: Value.Type) -> AttributeGraph.OptionalAttribute } @@ -229,7 +224,7 @@ public struct OptionalAttribute { public init(_ attribute: AttributeGraph.Attribute) public init(_ attribute: AttributeGraph.Attribute?) public init(_ weakAttribute: AttributeGraph.WeakAttribute) - public var attribute: AttributeGraph.Attribute? { get set _modify } + public var attribute: AttributeGraph.Attribute? { get set } public var value: Value? { get } public func changedValue(options: AGValueOptions = []) -> (value: Value, changed: Bool)? public func map(_ body: (AttributeGraph.Attribute) -> V) -> V? @@ -264,7 +259,6 @@ public struct IndirectAttribute { public var dependency: AGAttribute? { get nonmutating set - nonmutating _modify } public var value: Value { get diff --git a/AG/AttributeGraph.xcframework/macos-arm64e-arm64-x86_64/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/arm64-apple-macos.swiftinterface b/AG/AttributeGraph.xcframework/macos-arm64e-arm64-x86_64/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/arm64-apple-macos.swiftinterface index b99ab548..c8309331 100644 --- a/AG/AttributeGraph.xcframework/macos-arm64e-arm64-x86_64/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/arm64-apple-macos.swiftinterface +++ b/AG/AttributeGraph.xcframework/macos-arm64e-arm64-x86_64/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/arm64-apple-macos.swiftinterface @@ -131,11 +131,6 @@ extension AGWeakAttribute { set { self = AGWeakAttribute(newValue) } - _modify { - var value = attribute - yield &value - attribute = value - } } } @@ -179,7 +174,7 @@ public struct WeakAttribute { public init(_ attribute: AttributeGraph.Attribute) public init(_ attribute: AttributeGraph.Attribute?) public var wrappedValue: Value? { get } - public var projectedValue: AttributeGraph.Attribute?{ get set _modify } + public var projectedValue: AttributeGraph.Attribute?{ get set } public subscript(dynamicMember keyPath: Swift.KeyPath) -> AttributeGraph.Attribute? { get } public var attribute: AttributeGraph.Attribute? { get set _modify } public var value: Value? { get } @@ -206,7 +201,7 @@ public struct AnyOptionalAttribute { public init(_ attribute: AttributeGraph.OptionalAttribute) public var identifier: AGAttribute public static var current: AttributeGraph.AnyOptionalAttribute { get } - public var attribute: AGAttribute? { get set _modify } + public var attribute: AGAttribute? { get set } public func map(_ body: (AGAttribute) -> Value) -> Value? public func unsafeCast(to type: Value.Type) -> AttributeGraph.OptionalAttribute } @@ -229,7 +224,7 @@ public struct OptionalAttribute { public init(_ attribute: AttributeGraph.Attribute) public init(_ attribute: AttributeGraph.Attribute?) public init(_ weakAttribute: AttributeGraph.WeakAttribute) - public var attribute: AttributeGraph.Attribute? { get set _modify } + public var attribute: AttributeGraph.Attribute? { get set } public var value: Value? { get } public func changedValue(options: AGValueOptions = []) -> (value: Value, changed: Bool)? public func map(_ body: (AttributeGraph.Attribute) -> V) -> V? @@ -264,7 +259,6 @@ public struct IndirectAttribute { public var dependency: AGAttribute? { get nonmutating set - nonmutating _modify } public var value: Value { get diff --git a/AG/AttributeGraph.xcframework/macos-arm64e-arm64-x86_64/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/arm64e-apple-macos.swiftinterface b/AG/AttributeGraph.xcframework/macos-arm64e-arm64-x86_64/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/arm64e-apple-macos.swiftinterface index dabd5513..46f600a4 100644 --- a/AG/AttributeGraph.xcframework/macos-arm64e-arm64-x86_64/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/arm64e-apple-macos.swiftinterface +++ b/AG/AttributeGraph.xcframework/macos-arm64e-arm64-x86_64/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/arm64e-apple-macos.swiftinterface @@ -131,11 +131,6 @@ extension AGWeakAttribute { set { self = AGWeakAttribute(newValue) } - _modify { - var value = attribute - yield &value - attribute = value - } } } @@ -179,7 +174,7 @@ public struct WeakAttribute { public init(_ attribute: AttributeGraph.Attribute) public init(_ attribute: AttributeGraph.Attribute?) public var wrappedValue: Value? { get } - public var projectedValue: AttributeGraph.Attribute?{ get set _modify } + public var projectedValue: AttributeGraph.Attribute?{ get set } public subscript(dynamicMember keyPath: Swift.KeyPath) -> AttributeGraph.Attribute? { get } public var attribute: AttributeGraph.Attribute? { get set _modify } public var value: Value? { get } @@ -206,7 +201,7 @@ public struct AnyOptionalAttribute { public init(_ attribute: AttributeGraph.OptionalAttribute) public var identifier: AGAttribute public static var current: AttributeGraph.AnyOptionalAttribute { get } - public var attribute: AGAttribute? { get set _modify } + public var attribute: AGAttribute? { get set } public func map(_ body: (AGAttribute) -> Value) -> Value? public func unsafeCast(to type: Value.Type) -> AttributeGraph.OptionalAttribute } @@ -229,7 +224,7 @@ public struct OptionalAttribute { public init(_ attribute: AttributeGraph.Attribute) public init(_ attribute: AttributeGraph.Attribute?) public init(_ weakAttribute: AttributeGraph.WeakAttribute) - public var attribute: AttributeGraph.Attribute? { get set _modify } + public var attribute: AttributeGraph.Attribute? { get set } public var value: Value? { get } public func changedValue(options: AGValueOptions = []) -> (value: Value, changed: Bool)? public func map(_ body: (AttributeGraph.Attribute) -> V) -> V? @@ -264,7 +259,6 @@ public struct IndirectAttribute { public var dependency: AGAttribute? { get nonmutating set - nonmutating _modify } public var value: Value { get diff --git a/AG/AttributeGraph.xcframework/macos-arm64e-arm64-x86_64/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/x86_64-apple-macos.swiftinterface b/AG/AttributeGraph.xcframework/macos-arm64e-arm64-x86_64/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/x86_64-apple-macos.swiftinterface index c5054ded..5cc3acfa 100644 --- a/AG/AttributeGraph.xcframework/macos-arm64e-arm64-x86_64/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/x86_64-apple-macos.swiftinterface +++ b/AG/AttributeGraph.xcframework/macos-arm64e-arm64-x86_64/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/x86_64-apple-macos.swiftinterface @@ -131,11 +131,6 @@ extension AGWeakAttribute { set { self = AGWeakAttribute(newValue) } - _modify { - var value = attribute - yield &value - attribute = value - } } } @@ -179,7 +174,7 @@ public struct WeakAttribute { public init(_ attribute: AttributeGraph.Attribute) public init(_ attribute: AttributeGraph.Attribute?) public var wrappedValue: Value? { get } - public var projectedValue: AttributeGraph.Attribute?{ get set _modify } + public var projectedValue: AttributeGraph.Attribute?{ get set } public subscript(dynamicMember keyPath: Swift.KeyPath) -> AttributeGraph.Attribute? { get } public var attribute: AttributeGraph.Attribute? { get set _modify } public var value: Value? { get } @@ -206,7 +201,7 @@ public struct AnyOptionalAttribute { public init(_ attribute: AttributeGraph.OptionalAttribute) public var identifier: AGAttribute public static var current: AttributeGraph.AnyOptionalAttribute { get } - public var attribute: AGAttribute? { get set _modify } + public var attribute: AGAttribute? { get set } public func map(_ body: (AGAttribute) -> Value) -> Value? public func unsafeCast(to type: Value.Type) -> AttributeGraph.OptionalAttribute } @@ -229,7 +224,7 @@ public struct OptionalAttribute { public init(_ attribute: AttributeGraph.Attribute) public init(_ attribute: AttributeGraph.Attribute?) public init(_ weakAttribute: AttributeGraph.WeakAttribute) - public var attribute: AttributeGraph.Attribute? { get set _modify } + public var attribute: AttributeGraph.Attribute? { get set } public var value: Value? { get } public func changedValue(options: AGValueOptions = []) -> (value: Value, changed: Bool)? public func map(_ body: (AttributeGraph.Attribute) -> V) -> V? @@ -264,7 +259,6 @@ public struct IndirectAttribute { public var dependency: AGAttribute? { get nonmutating set - nonmutating _modify } public var value: Value { get diff --git a/AG/Sources/Modules/AttributeGraph.swiftmodule/template.swiftinterface b/AG/Sources/Modules/AttributeGraph.swiftmodule/template.swiftinterface index 7a7d0caf..36f0142e 100644 --- a/AG/Sources/Modules/AttributeGraph.swiftmodule/template.swiftinterface +++ b/AG/Sources/Modules/AttributeGraph.swiftmodule/template.swiftinterface @@ -127,11 +127,6 @@ extension AGWeakAttribute { set { self = AGWeakAttribute(newValue) } - _modify { - var value = attribute - yield &value - attribute = value - } } } @@ -175,7 +170,7 @@ public struct WeakAttribute { public init(_ attribute: AttributeGraph.Attribute) public init(_ attribute: AttributeGraph.Attribute?) public var wrappedValue: Value? { get } - public var projectedValue: AttributeGraph.Attribute?{ get set _modify } + public var projectedValue: AttributeGraph.Attribute?{ get set } public subscript(dynamicMember keyPath: Swift.KeyPath) -> AttributeGraph.Attribute? { get } public var attribute: AttributeGraph.Attribute? { get set _modify } public var value: Value? { get } @@ -202,7 +197,7 @@ public struct AnyOptionalAttribute { public init(_ attribute: AttributeGraph.OptionalAttribute) public var identifier: AGAttribute public static var current: AttributeGraph.AnyOptionalAttribute { get } - public var attribute: AGAttribute? { get set _modify } + public var attribute: AGAttribute? { get set } public func map(_ body: (AGAttribute) -> Value) -> Value? public func unsafeCast(to type: Value.Type) -> AttributeGraph.OptionalAttribute } @@ -225,7 +220,7 @@ public struct OptionalAttribute { public init(_ attribute: AttributeGraph.Attribute) public init(_ attribute: AttributeGraph.Attribute?) public init(_ weakAttribute: AttributeGraph.WeakAttribute) - public var attribute: AttributeGraph.Attribute? { get set _modify } + public var attribute: AttributeGraph.Attribute? { get set } public var value: Value? { get } public func changedValue(options: AGValueOptions = []) -> (value: Value, changed: Bool)? public func map(_ body: (AttributeGraph.Attribute) -> V) -> V? @@ -260,7 +255,6 @@ public struct IndirectAttribute { public var dependency: AGAttribute? { get nonmutating set - nonmutating _modify } public var value: Value { get diff --git a/Sources/OpenGraph/Attribute/Indirect/IndirectAttribute.swift b/Sources/OpenGraph/Attribute/Indirect/IndirectAttribute.swift index 19af35a4..b32a77ef 100644 --- a/Sources/OpenGraph/Attribute/Indirect/IndirectAttribute.swift +++ b/Sources/OpenGraph/Attribute/Indirect/IndirectAttribute.swift @@ -18,11 +18,6 @@ public struct IndirectAttribute { public var source: Attribute { get { Attribute(identifier: identifier.source) } nonmutating set { identifier.source = newValue.identifier } - nonmutating _modify { - var value = source - yield &value - source = value - } } public var dependency: OGAttribute? { @@ -31,17 +26,11 @@ public struct IndirectAttribute { return dependency == .nil ? nil : dependency } nonmutating set { identifier._indirectDependency = newValue ?? .nil } - nonmutating _modify { - var value = dependency - yield &value - dependency = value - } } public var value: Value { get { Attribute(identifier: identifier).value } nonmutating set { Attribute(identifier: identifier).value = newValue } - // FIXME nonmutating _modify { yield &Attribute(identifier: identifier).value } } diff --git a/Sources/OpenGraph/Attribute/Optional/AnyOptionalAttribute.swift b/Sources/OpenGraph/Attribute/Optional/AnyOptionalAttribute.swift index 0977a7bd..b710fbac 100644 --- a/Sources/OpenGraph/Attribute/Optional/AnyOptionalAttribute.swift +++ b/Sources/OpenGraph/Attribute/Optional/AnyOptionalAttribute.swift @@ -36,11 +36,6 @@ public struct AnyOptionalAttribute { public var attribute: OGAttribute? { get { identifier == .nil ? nil : identifier } set { identifier = newValue ?? .nil } - _modify { - var value = attribute - yield &value - attribute = value - } } public func map(_ body: (OGAttribute) -> Value) -> Value? { diff --git a/Sources/OpenGraph/Attribute/Optional/OptionalAttribute.swift b/Sources/OpenGraph/Attribute/Optional/OptionalAttribute.swift index 5caf2033..a4a1ebe5 100644 --- a/Sources/OpenGraph/Attribute/Optional/OptionalAttribute.swift +++ b/Sources/OpenGraph/Attribute/Optional/OptionalAttribute.swift @@ -34,11 +34,6 @@ public struct OptionalAttribute { public var attribute: Attribute? { get { base.attribute?.unsafeCast(to: Value.self) } set { base.attribute = newValue?.identifier } - _modify { - var value = attribute - yield &value - attribute = value - } } public var value: Value? { attribute?.value } diff --git a/Sources/OpenGraph/Attribute/Weak/OGWeakAttribute.swift b/Sources/OpenGraph/Attribute/Weak/OGWeakAttribute.swift index b6d5151d..8633e622 100644 --- a/Sources/OpenGraph/Attribute/Weak/OGWeakAttribute.swift +++ b/Sources/OpenGraph/Attribute/Weak/OGWeakAttribute.swift @@ -32,11 +32,6 @@ extension OGWeakAttribute { set { self = OGWeakAttribute(newValue) } - _modify { - var value = attribute - yield &value - attribute = value - } } } diff --git a/Sources/OpenGraph/Attribute/Weak/WeakAttribute.swift b/Sources/OpenGraph/Attribute/Weak/WeakAttribute.swift index 94b68d09..7ced3fd4 100644 --- a/Sources/OpenGraph/Attribute/Weak/WeakAttribute.swift +++ b/Sources/OpenGraph/Attribute/Weak/WeakAttribute.swift @@ -46,11 +46,6 @@ public struct WeakAttribute { public var attribute: Attribute? { get { base.attribute?.unsafeCast(to: Value.self) } set { base.attribute = newValue?.identifier } - _modify { - var value = attribute - yield &value - attribute = value - } } public var value: Value? {