Remove unused code from TimelineTableView.
This commit is contained in:
parent
7184f8c439
commit
0e31e526e4
|
@ -12,18 +12,18 @@ class TimelineTableView: NSTableView {
|
|||
|
||||
@IBOutlet var keyboardDelegate: KeyboardDelegate!
|
||||
|
||||
//MARK: NSResponder
|
||||
// MARK: - NSResponder
|
||||
|
||||
override func keyDown(with event: NSEvent) {
|
||||
|
||||
if keyboardDelegate.keydown(event, in: self) {
|
||||
return
|
||||
}
|
||||
super.keyDown(with: event)
|
||||
}
|
||||
|
||||
|
||||
// MARK: - NSView
|
||||
|
||||
override func viewWillStartLiveResize() {
|
||||
|
||||
if let scrollView = self.enclosingScrollView {
|
||||
scrollView.hasVerticalScroller = false
|
||||
}
|
||||
|
@ -31,23 +31,9 @@ class TimelineTableView: NSTableView {
|
|||
}
|
||||
|
||||
override func viewDidEndLiveResize() {
|
||||
|
||||
if let scrollView = self.enclosingScrollView {
|
||||
scrollView.hasVerticalScroller = true
|
||||
}
|
||||
super.viewDidEndLiveResize()
|
||||
}
|
||||
|
||||
func redrawGrid() {
|
||||
|
||||
guard let rowViews = visibleRowViews() else {
|
||||
return
|
||||
}
|
||||
|
||||
rowViews.forEach{ (rowView) in
|
||||
if let rowView = rowView as? TimelineTableRowView {
|
||||
rowView.invalidateGridRect()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue