Skip to content

Commit 055098d

Browse files
committed
Remove superfluous RawSyntaxLayoutView.numberOfChildern
We already expose `children`, so we can just use `children.count`.
1 parent b397a10 commit 055098d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Sources/SwiftSyntax/Raw/RawSyntaxLayoutView.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,5 @@ public struct RawSyntaxLayoutView {
166166
public var children: RawSyntaxBuffer {
167167
layoutData.layout
168168
}
169-
170-
/// The number of children, `present` or `missing`, in this node.
171-
@_spi(RawSyntax)
172-
public var numberOfChildren: Int {
173-
return children.count
174-
}
175169
}
176170

0 commit comments

Comments
 (0)