Skip to content

Commit 114c6e9

Browse files
committed
Remove Unused Variable
1 parent 813531e commit 114c6e9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/CodeEditSourceEditor/Controller/TextViewController+EmphasizeBracket.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ extension TextViewController {
113113
/// - location: The location of the character to emphasize
114114
/// - scrollToRange: Set to true to scroll to the given range when emphasizing. Defaults to `false`.
115115
private func emphasizeCharacter(_ location: Int, scrollToRange: Bool = false) {
116-
guard let bracketPairEmphasis = bracketPairEmphasis,
117-
let rectToEmphasize = textView.layoutManager.rectForOffset(location) else {
116+
guard let bracketPairEmphasis = bracketPairEmphasis else {
118117
return
119118
}
120119

0 commit comments

Comments
 (0)