Skip to content

Commit

Permalink
Delete Unused CaptureGroup Pattern Properties (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpisciotta authored Nov 9, 2024
1 parent e1cb44a commit ecb7a62
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions Sources/XcbeautifyLib/CaptureGroups.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ package extension CaptureGroup {
var outputType: OutputType { Self.outputType }
}

extension CaptureGroup {
static var pattern: String { regex.pattern }
var pattern: String { Self.regex.pattern }
}

protocol ErrorCaptureGroup: CaptureGroup {
var wholeError: String { get }
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/XcbeautifyLib/XCRegex.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Foundation
// `NSRegularExpression` is marked as `@unchecked Sendable`.
// Match the definition here.
package final class XCRegex: @unchecked Sendable {
let pattern: String
private let pattern: String

private lazy var regex: NSRegularExpression? = {
let regex = try? NSRegularExpression(pattern: "^" + pattern, options: [.caseInsensitive])
Expand Down

0 comments on commit ecb7a62

Please sign in to comment.