Skip to content

Commit 3ffcc72

Browse files
committed
Chore: delete unused codes
1 parent fd7238c commit 3ffcc72

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

CodeGeneration/Sources/generate-swiftsyntax/templates/swiftparser/IncrementalParseUtilsFile.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ let IncrementalParseUtilsFile = SourceFileSyntax(leadingTrivia: copyrightHeader)
8989
nextPotentialNodeIndex = children.index(after: nextPotentialNodeIndex)
9090
}
9191
92-
if nextPotentialNodeIndex == children.endIndex {
93-
return []
94-
}
9592
9693
return self.kind.syntaxLayout[nextPotentialNodeIndex].flatMap { $0.firstPotentialTokenChoices }
9794

Sources/SwiftParser/generated/IncrementalParseUtils.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7677,9 +7677,6 @@ extension RawSyntax {
76777677
nextPotentialNodeIndex = children.index(after: nextPotentialNodeIndex)
76787678
}
76797679

7680-
if nextPotentialNodeIndex == children.endIndex {
7681-
return []
7682-
}
76837680

76847681
return self.kind.syntaxLayout[nextPotentialNodeIndex].flatMap {
76857682
$0.firstPotentialTokenChoices

0 commit comments

Comments
 (0)