Skip to content

Commit

Permalink
Remove more unused function parameters
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Dye <[email protected]>
  • Loading branch information
ecdye committed Oct 18, 2024
1 parent e83e74e commit db132e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/macSubtitleOCR/SubtitleProcessor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ struct SubtitleProcessor {
}
}

let (subtitleText, subtitleLines) = await recognizeText(from: subImage, at: subIndex)
let (subtitleText, subtitleLines) = await recognizeText(from: subImage)
subtitle.text = subtitleText
subtitle.imageData = nil // Clear the image data to save memory

Expand All @@ -114,7 +114,7 @@ struct SubtitleProcessor {
return false
}

private func recognizeText(from image: CGImage, at _: Int) async -> (String, [SubtitleLine]) {
private func recognizeText(from image: CGImage) async -> (String, [SubtitleLine]) {
var text = ""
var lines: [SubtitleLine] = []

Expand Down

0 comments on commit db132e0

Please sign in to comment.