Skip to content

Commit

Permalink
Refactor: Removed superfluous get keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
revolter committed Dec 29, 2019
1 parent 2f4ae32 commit 4d46088
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions EvaluateForXcode/IOLabel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,17 @@ import AppKit
class IOLabel: NSTextField {

override var intrinsicContentSize: NSSize {
get {
guard let cell = self.cell, cell.wraps else {
return super.intrinsicContentSize
}
guard let cell = self.cell, cell.wraps else {
return super.intrinsicContentSize
}

var frame = self.frame
var frame = self.frame

frame.size.height = CGFloat.greatestFiniteMagnitude
frame.size.height = CGFloat.greatestFiniteMagnitude

let height = cell.cellSize(forBounds: frame).height
let height = cell.cellSize(forBounds: frame).height

return NSSize(width: frame.width, height: height)
}
return NSSize(width: frame.width, height: height)
}

override func textDidChange(_ notification: Notification) {
Expand Down

0 comments on commit 4d46088

Please sign in to comment.