Remove old code
This commit is contained in:
parent
2088a91098
commit
b971952217
|
@ -53,8 +53,6 @@ class QueryViewController: NSViewController {
|
|||
queryTextView.font = .monospacedSystemFont(ofSize: 13, weight: .regular)
|
||||
queryTextView.isAutomaticQuoteSubstitutionEnabled = false
|
||||
queryTextView.string = defaultQuery
|
||||
// queryTextView.delegate = self
|
||||
// highlightQuery()
|
||||
|
||||
outlineView.dataSource = self
|
||||
outlineView.delegate = self
|
||||
|
@ -78,10 +76,6 @@ class QueryViewController: NSViewController {
|
|||
view.window!.makeFirstResponder(outlineView)
|
||||
}
|
||||
|
||||
// func highlightQuery() {
|
||||
// JavaScriptHighlighter(mutableAttributed: queryTextView.textStorage!).highlight()
|
||||
// }
|
||||
|
||||
func refresh(reload: Bool = true) {
|
||||
if let query = mostRecentQuery {
|
||||
let connStr = "\(mongoController.connectionString)/\(collection.database)"
|
||||
|
@ -175,12 +169,6 @@ class QueryViewController: NSViewController {
|
|||
}
|
||||
|
||||
}
|
||||
//
|
||||
//extension QueryViewController: NSTextViewDelegate {
|
||||
// func textDidChange(_ notification: Notification) {
|
||||
// highlightQuery()
|
||||
// }
|
||||
//}
|
||||
|
||||
extension QueryViewController: NSMenuItemValidation {
|
||||
func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
|
||||
|
|
Loading…
Reference in New Issue