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:
Maurice Parker 2019-09-01 10:57:08 -05:00
parent 6cf1e4539d
commit 56c81bba1f
1 changed files with 2 additions and 10 deletions

View File

@ -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()
}