Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions Sources/RegexBuilder/Builder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,4 @@ public enum RegexComponentBuilder {
public static func buildExpression<R: RegexComponent>(_ regex: R) -> R {
regex
}

public static func buildEither<R: RegexComponent>(first component: R) -> R {
component
}

public static func buildEither<R: RegexComponent>(second component: R) -> R {
component
}
}
8 changes: 0 additions & 8 deletions Sources/RegexBuilder/DSL.swift
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,6 @@ public struct AlternationBuilder {
public static func buildExpression<R: RegexComponent>(_ regex: R) -> R {
regex
}

public static func buildEither<R: RegexComponent>(first component: R) -> R {
component
}

public static func buildEither<R: RegexComponent>(second component: R) -> R {
component
}
}

@available(SwiftStdlib 5.7, *)
Expand Down