From 56c81bba1f70d588aecc24e28e9a5038f6074d80 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sun, 1 Sep 2019 10:57:08 -0500 Subject: [PATCH] Delete code that was doing an unnecessary rebuild of the treeController. This will be done by the controllers receiving the batch update notification. --- Shared/Commands/DeleteCommand.swift | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Shared/Commands/DeleteCommand.swift b/Shared/Commands/DeleteCommand.swift index 6c62e0554..edc586fe5 100644 --- a/Shared/Commands/DeleteCommand.swift +++ b/Shared/Commands/DeleteCommand.swift @@ -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() }