From 894cb3960bf968c34bc1875ca65f39f633bc11ae Mon Sep 17 00:00:00 2001 From: Richard Wei Date: Mon, 13 Jun 2022 23:30:39 -0700 Subject: [PATCH] Remove `buildEither`. `buildEither` was removed from the regex builder DSL proposal. See apple/swift-evolution#1634. --- Sources/RegexBuilder/Builder.swift | 8 -------- Sources/RegexBuilder/DSL.swift | 8 -------- 2 files changed, 16 deletions(-) diff --git a/Sources/RegexBuilder/Builder.swift b/Sources/RegexBuilder/Builder.swift index be9a48e36..a50f069ec 100644 --- a/Sources/RegexBuilder/Builder.swift +++ b/Sources/RegexBuilder/Builder.swift @@ -25,12 +25,4 @@ public enum RegexComponentBuilder { public static func buildExpression(_ regex: R) -> R { regex } - - public static func buildEither(first component: R) -> R { - component - } - - public static func buildEither(second component: R) -> R { - component - } } diff --git a/Sources/RegexBuilder/DSL.swift b/Sources/RegexBuilder/DSL.swift index f3b0fd702..ecd01c07c 100644 --- a/Sources/RegexBuilder/DSL.swift +++ b/Sources/RegexBuilder/DSL.swift @@ -211,14 +211,6 @@ public struct AlternationBuilder { public static func buildExpression(_ regex: R) -> R { regex } - - public static func buildEither(first component: R) -> R { - component - } - - public static func buildEither(second component: R) -> R { - component - } } @available(SwiftStdlib 5.7, *)