Browse Source

Remove old code

master
Shadowfacts 3 months ago
parent
commit
b971952217
Signed by: Shadowfacts <me@shadowfacts.net> GPG Key ID: 94A5AB95422746E5
1 changed files with 2 additions and 14 deletions
  1. 2
    14
      MongoView/View Controllers/QueryViewController.swift

+ 2
- 14
MongoView/View Controllers/QueryViewController.swift View File

@@ -53,9 +53,7 @@ class QueryViewController: NSViewController {
53 53
         queryTextView.font = .monospacedSystemFont(ofSize: 13, weight: .regular)
54 54
         queryTextView.isAutomaticQuoteSubstitutionEnabled = false
55 55
         queryTextView.string = defaultQuery
56
-//        queryTextView.delegate = self
57
-//        highlightQuery()
58
-        
56
+
59 57
         outlineView.dataSource = self
60 58
         outlineView.delegate = self
61 59
         
@@ -77,11 +75,7 @@ class QueryViewController: NSViewController {
77 75
         
78 76
         view.window!.makeFirstResponder(outlineView)
79 77
     }
80
-    
81
-//    func highlightQuery() {
82
-//        JavaScriptHighlighter(mutableAttributed: queryTextView.textStorage!).highlight()
83
-//    }
84
-    
78
+
85 79
     func refresh(reload: Bool = true) {
86 80
         if let query = mostRecentQuery {
87 81
             let connStr = "\(mongoController.connectionString)/\(collection.database)"
@@ -175,12 +169,6 @@ class QueryViewController: NSViewController {
175 169
     }
176 170
     
177 171
 }
178
-//
179
-//extension QueryViewController: NSTextViewDelegate {
180
-//    func textDidChange(_ notification: Notification) {
181
-//        highlightQuery()
182
-//    }
183
-//}
184 172
 
185 173
 extension QueryViewController: NSMenuItemValidation {
186 174
     func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {

Loading…
Cancel
Save