Skip to content

Commit 857dd7b

Browse files
authored
Merge pull request #482 from rxwei/no-buildeither
Remove `buildEither`.
2 parents e6fec4b + 894cb39 commit 857dd7b

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

Sources/RegexBuilder/Builder.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,4 @@ public enum RegexComponentBuilder {
2525
public static func buildExpression<R: RegexComponent>(_ regex: R) -> R {
2626
regex
2727
}
28-
29-
public static func buildEither<R: RegexComponent>(first component: R) -> R {
30-
component
31-
}
32-
33-
public static func buildEither<R: RegexComponent>(second component: R) -> R {
34-
component
35-
}
3628
}

Sources/RegexBuilder/DSL.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -211,14 +211,6 @@ public struct AlternationBuilder {
211211
public static func buildExpression<R: RegexComponent>(_ regex: R) -> R {
212212
regex
213213
}
214-
215-
public static func buildEither<R: RegexComponent>(first component: R) -> R {
216-
component
217-
}
218-
219-
public static func buildEither<R: RegexComponent>(second component: R) -> R {
220-
component
221-
}
222214
}
223215

224216
@available(SwiftStdlib 5.7, *)

0 commit comments

Comments
 (0)