Skip to content

Commit 8214bbe

Browse files
committed
Removed unused code
1 parent 5080a3b commit 8214bbe

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

Sources/Sync/Sync.swift

-36
Original file line numberDiff line numberDiff line change
@@ -37,39 +37,3 @@ public func _syncToParent<Parent, Child, each Value>(
3737

3838
return child
3939
}
40-
41-
struct ExampleParent {
42-
var country: String
43-
var city: String
44-
45-
// @Sync(
46-
// (\ExampleChild.country, to: \ExampleParent.country),
47-
// (\ExampleChild.city, to: \ExampleParent.city),
48-
// )
49-
var child: ExampleChild /* generated: */ {
50-
get {
51-
_syncToChild(
52-
parent: self,
53-
child: _child,
54-
(\ExampleChild.country, to: \ExampleParent.country),
55-
(\ExampleChild.city, to: \ExampleParent.city)
56-
)
57-
}
58-
set {
59-
_child = _syncToParent(
60-
parent: &self,
61-
child: newValue,
62-
(\ExampleChild.country, to: \ExampleParent.country),
63-
(\ExampleChild.city, to: \ExampleParent.city)
64-
)
65-
}
66-
}
67-
68-
private var _child: ExampleChild
69-
}
70-
71-
struct ExampleChild {
72-
var country: String
73-
var city: String
74-
var street: String
75-
}

0 commit comments

Comments
 (0)