Skip to content

Commit

Permalink
Delete format(line:command:pattern:arguments) method
Browse files Browse the repository at this point in the history
  • Loading branch information
cpisciotta committed Jan 7, 2024
1 parent 9aaf68a commit e2c8c53
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions Sources/XcbeautifyLib/Renderers/OutputRendering.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ protocol OutputRendering {

func format(testSummary: TestSummary) -> String

func format(line: String, command: String, pattern: String, arguments: String) -> String?
func formatAnalyze(group: AnalyzeCaptureGroup) -> String
func formatCheckDependencies() -> String
func formatCleanRemove(group: CleanRemoveCaptureGroup) -> String
Expand Down Expand Up @@ -267,22 +266,6 @@ extension OutputRendering {
}

extension OutputRendering {
func format(line: String, command: String, pattern: String, arguments: String) -> String? {
let template = command.style.Bold + " " + arguments

guard let formatted = try? NSRegularExpression(pattern: pattern)
.stringByReplacingMatches(
in: line,
range: NSRange(location: 0, length: line.count),
withTemplate: template
)
else {
return nil
}

return formatted
}

func formatAnalyze(group: AnalyzeCaptureGroup) -> String {
let filename = group.filename
let target = group.target
Expand Down

0 comments on commit e2c8c53

Please sign in to comment.