Skip to content

Commit

Permalink
Removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Obbut committed Jan 25, 2024
1 parent 5080a3b commit 8214bbe
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions Sources/Sync/Sync.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,39 +37,3 @@ public func _syncToParent<Parent, Child, each Value>(

return child
}

struct ExampleParent {
var country: String
var city: String

// @Sync(
// (\ExampleChild.country, to: \ExampleParent.country),
// (\ExampleChild.city, to: \ExampleParent.city),
// )
var child: ExampleChild /* generated: */ {
get {
_syncToChild(
parent: self,
child: _child,
(\ExampleChild.country, to: \ExampleParent.country),
(\ExampleChild.city, to: \ExampleParent.city)
)
}
set {
_child = _syncToParent(
parent: &self,
child: newValue,
(\ExampleChild.country, to: \ExampleParent.country),
(\ExampleChild.city, to: \ExampleParent.city)
)
}
}

private var _child: ExampleChild
}

struct ExampleChild {
var country: String
var city: String
var street: String
}

0 comments on commit 8214bbe

Please sign in to comment.