Skip to content

Commit c674db9

Browse files
committed
Remove a merge-o
1 parent 31d0a05 commit c674db9

File tree

1 file changed

+0
-56
lines changed

1 file changed

+0
-56
lines changed

Sources/_StringProcessing/RegexDSL/DSL.swift

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -197,59 +197,3 @@ public func oneOf<R: RegexProtocol>(
197197
) -> R {
198198
builder()
199199
}
200-
201-
// MARK: - Capture
202-
203-
public struct CapturingGroup<Match>: RegexProtocol {
204-
public let regex: Regex<Match>
205-
206-
init<Component: RegexProtocol>(
207-
_ component: Component
208-
) {
209-
self.regex = .init(node: .group(
210-
.capture, component.regex.root))
211-
}
212-
213-
init<Component: RegexProtocol>(
214-
_ component: Component,
215-
transform: CaptureTransform
216-
) {
217-
self.regex = .init(node: .groupTransform(
218-
.capture,
219-
component.regex.root,
220-
transform))
221-
}
222-
223-
init<NewCapture, Component: RegexProtocol>(
224-
_ component: Component,
225-
transform: @escaping (Substring) -> NewCapture
226-
) {
227-
self.init(
228-
component,
229-
transform: CaptureTransform(resultType: NewCapture.self) {
230-
transform($0) as Any
231-
})
232-
}
233-
234-
init<NewCapture, Component: RegexProtocol>(
235-
_ component: Component,
236-
transform: @escaping (Substring) throws -> NewCapture
237-
) {
238-
self.init(
239-
component,
240-
transform: CaptureTransform(resultType: NewCapture.self) {
241-
try transform($0) as Any
242-
})
243-
}
244-
245-
init<NewCapture, Component: RegexProtocol>(
246-
_ component: Component,
247-
transform: @escaping (Substring) -> NewCapture?
248-
) {
249-
self.init(
250-
component,
251-
transform: CaptureTransform(resultType: NewCapture.self) {
252-
transform($0) as Any?
253-
})
254-
}
255-
}

0 commit comments

Comments
 (0)