From 181e7ff7e8a3d38c063a969f589a445d7c3a2fad Mon Sep 17 00:00:00 2001 From: Khan Winter <35942988+thecoolwinter@users.noreply.github.com> Date: Sat, 14 Oct 2023 16:13:24 -0500 Subject: [PATCH] Fix Linter --- .../Controller/TextViewController.swift | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Sources/CodeEditTextView/Controller/TextViewController.swift b/Sources/CodeEditTextView/Controller/TextViewController.swift index e319daded..b589d4e67 100644 --- a/Sources/CodeEditTextView/Controller/TextViewController.swift +++ b/Sources/CodeEditTextView/Controller/TextViewController.swift @@ -117,9 +117,7 @@ public class TextViewController: NSViewController { internal var storageDelegate: MultiStorageDelegate! internal var highlighter: Highlighter? - private var fontCharWidth: CGFloat { - (" " as NSString).size(withAttributes: [.font: font]).width - } + private var fontCharWidth: CGFloat { (" " as NSString).size(withAttributes: [.font: font]).width } /// Filters used when applying edits.. internal var textFilters: [TextFormation.Filter] = [] @@ -127,9 +125,7 @@ public class TextViewController: NSViewController { /// The pixel value to overscroll the bottom of the editor. /// Calculated as the line height \* ``TextViewController/editorOverscroll``. /// Does not include ``TextViewController/contentInsets``. - private var bottomContentInset: CGFloat { - (textView?.estimatedLineHeight() ?? 0) * CGFloat(editorOverscroll) - } + private var bottomContentInset: CGFloat { (textView?.estimatedLineHeight() ?? 0) * CGFloat(editorOverscroll) } private var cancellables = Set() @@ -238,7 +234,6 @@ public class TextViewController: NSViewController { ) self.view = scrollView - setUpHighlighter() NSLayoutConstraint.activate([ @@ -340,7 +335,6 @@ public class TextViewController: NSViewController { } highlighter?.invalidate() - // highlightSelectionPairs() } deinit {