Remove extraneous get { from a bunch of read-only accessors.

This commit is contained in:
Brent Simmons
2018-02-14 13:14:25 -08:00
parent 192439abe7
commit 2f21dbf6be
44 changed files with 216 additions and 353 deletions

View File

@@ -23,14 +23,12 @@ class TimelineTableRowView : NSTableRowView {
// }
private var cellView: TimelineTableCellView? {
get {
for oneSubview in subviews {
if let foundView = oneSubview as? TimelineTableCellView {
return foundView
}
for oneSubview in subviews {
if let foundView = oneSubview as? TimelineTableCellView {
return foundView
}
return nil
}
return nil
}
override var isEmphasized: Bool {
@@ -50,10 +48,7 @@ class TimelineTableRowView : NSTableRowView {
}
var gridRect: NSRect {
get {
// return NSMakeRect(floor(cellAppearance.boxLeftMargin), NSMaxY(bounds) - 1.0, NSWidth(bounds), 1)
return NSMakeRect(0.0, NSMaxY(bounds) - 1.0, NSWidth(bounds), 1)
}
return NSMakeRect(0.0, NSMaxY(bounds) - 1.0, NSWidth(bounds), 1)
}
override func drawSeparator(in dirtyRect: NSRect) {