Remove some unused code.

This commit is contained in:
Brent Simmons 2019-02-09 22:09:38 -08:00
parent b22a965777
commit c40efd2c89
2 changed files with 0 additions and 10 deletions

View File

@ -12,8 +12,6 @@ import DB5
import Account
import RSTree
private var textSizeCache = [String: NSSize]()
class SidebarCell : NSTableCellView {
var image: NSImage? {
@ -73,10 +71,6 @@ class SidebarCell : NSTableCellView {
}
}
var node: Node? {
return objectValue as? Node
}
private let titleView: NSTextField = {
let textField = NSTextField(labelWithString: "")
textField.usesSingleLineMode = true

View File

@ -463,9 +463,7 @@ private extension SidebarViewController {
}
func configure(_ cell: SidebarCell, _ node: Node) {
cell.cellAppearance = sidebarCellAppearance
cell.objectValue = node
cell.name = nameFor(node)
configureUnreadCount(cell, node)
configureFavicon(cell, node)
@ -483,8 +481,6 @@ private extension SidebarViewController {
}
func configureGroupCell(_ cell: NSTableCellView, _ node: Node) {
cell.objectValue = node
cell.textField?.stringValue = nameFor(node)
}