mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Delete code that was doing an unnecessary rebuild of the treeController. This will be done by the controllers receiving the batch update notification.
This commit is contained in:
@@ -46,20 +46,12 @@ final class DeleteCommand: UndoableCommand {
|
||||
}
|
||||
|
||||
func perform() {
|
||||
|
||||
BatchUpdate.shared.perform {
|
||||
itemSpecifiers.forEach { $0.delete() {} }
|
||||
treeController.rebuild()
|
||||
}
|
||||
itemSpecifiers.forEach { $0.delete() {} }
|
||||
registerUndo()
|
||||
}
|
||||
|
||||
func undo() {
|
||||
|
||||
BatchUpdate.shared.perform {
|
||||
itemSpecifiers.forEach { $0.restore() }
|
||||
treeController.rebuild()
|
||||
}
|
||||
itemSpecifiers.forEach { $0.restore() }
|
||||
registerRedo()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user