Remove some unused code.
This commit is contained in:
parent
b22a965777
commit
c40efd2c89
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue