Skip to content

Commit e67f4c7

Browse files
committed
Remove dead code
1 parent f2f0cd9 commit e67f4c7

File tree

2 files changed

+0
-41
lines changed

2 files changed

+0
-41
lines changed

Sources/_StringProcessing/Executor.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,6 @@ enum Executor<Output> {
8888
cpu.reset(currentPosition: low, searchBounds: cpu.searchBounds)
8989
}
9090
}
91-
92-
static func allMatches(
93-
_ program: MEProgram,
94-
_ input: String,
95-
subjectBounds: Range<String.Index>,
96-
searchBounds: Range<String.Index>
97-
) -> Matches {
98-
fatalError()
99-
}
10091
}
10192

10293
@available(SwiftStdlib 5.7, *)

Sources/_StringProcessing/Regex/Match.swift

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -291,38 +291,6 @@ extension Regex {
291291
subjectBounds: bounds,
292292
searchBounds: bounds)
293293
}
294-
//
295-
// func _match(
296-
// _ input: String,
297-
// in subjectBounds: Range<String.Index>,
298-
// mode: MatchMode = .wholeString
299-
// ) throws -> Regex<Output>.Match? {
300-
//
301-
//
302-
// let executor = Executor(program: regex.program.loweredProgram)
303-
// return try executor.match(input, in: subjectBounds, mode)
304-
// }
305-
306-
// func _firstMatch(
307-
// _ input: String,
308-
// in subjectBounds: Range<String.Index>
309-
// ) throws -> Regex<Output>.Match? {
310-
// try Executor.firstMatch(self.program.loweredProgram, input, subjectBounds: subjectBounds, searchBounds: subjectBounds)
311-
// }
312-
313-
// func _firstMatch(
314-
// _ input: String,
315-
// subjectBounds: Range<String.Index>,
316-
// searchBounds: Range<String.Index>
317-
// ) throws -> Regex<Output>.Match? {
318-
// let executor = Executor(program: regex.program.loweredProgram)
319-
// let graphemeSemantic = regex.initialOptions.semanticLevel == .graphemeCluster
320-
// return try executor.firstMatch(
321-
// input,
322-
// subjectBounds: subjectBounds,
323-
// searchBounds: searchBounds,
324-
// graphemeSemantic: graphemeSemantic)
325-
// }
326294
}
327295

328296
@available(SwiftStdlib 5.7, *)

0 commit comments

Comments
 (0)