Remove unused code from TimelineTableView.

This commit is contained in:
Brent Simmons 2019-02-07 22:27:26 -08:00
parent 7184f8c439
commit 0e31e526e4
1 changed files with 4 additions and 18 deletions

View File

@ -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()
}
}
}
}