mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Remove some unused code.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user