Remove some unused code.
This commit is contained in:
1 parent
320d9cdd81
commit
099dd4466b
2 files changed
-26
No files matched your search
@@ -257,17 +257,4 @@ import Cocoa
|
||||
return nil
|
||||
}
|
||||
|
||||
func tableView(_ tableView: NSTableView, willDisplayCell cell: Any, for tableColumn: NSTableColumn?, row: Int) {
|
||||
if tableView == chapterTable && tableColumn?.identifier.rawValue == "time", let cell = cell as? NSTextFieldCell {
|
||||
if tableView.selectedRowIndexes.contains(row) {
|
||||
let highlightedString = NSMutableAttributedString(attributedString: cell.attributedStringValue)
|
||||
highlightedString.addAttribute(NSAttributedStringKey.foregroundColor, value: NSColor.black, range: NSMakeRange(0, highlightedString.length))
|
||||
cell.attributedStringValue = highlightedString
|
||||
}
|
||||
else {
|
||||
cell.textColor = NSColor.gray
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -471,19 +471,6 @@ import Cocoa
|
||||
return nil
|
||||
}
|
||||
|
||||
func tableView(_ tableView: NSTableView, willDisplayCell cell: Any, for tableColumn: NSTableColumn?, row: Int) {
|
||||
if tableView == metadataTable && tableColumn?.identifier.rawValue == "time", let cell = cell as? NSTextFieldCell {
|
||||
if tableView.selectedRowIndexes.contains(row) {
|
||||
let highlightedString = NSMutableAttributedString(attributedString: cell.attributedStringValue)
|
||||
highlightedString.addAttribute(NSAttributedStringKey.foregroundColor, value: NSColor.black, range: NSMakeRange(0, highlightedString.length))
|
||||
cell.attributedStringValue = highlightedString
|
||||
}
|
||||
else {
|
||||
cell.textColor = NSColor.gray
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func tableView(_ tableView: NSTableView, heightOfRow row: Int) -> CGFloat {
|
||||
if tableView.tableColumns.count > 1 {
|
||||
let tableColumnToWrap = tableView.tableColumns[1]
|
||||
|
||||
Reference in new issue
Block a user