From a2f750171a18fa781eca496315f4b2531f0d496d Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Tue, 4 Oct 2022 12:12:21 +0900 Subject: [PATCH] working_copy: remove redundant reload of checkout state on discard() There's no way to mutate operation_id other than finish(). --- lib/src/working_copy.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/src/working_copy.rs b/lib/src/working_copy.rs index f3dffbb3e..836c0e420 100644 --- a/lib/src/working_copy.rs +++ b/lib/src/working_copy.rs @@ -1214,7 +1214,6 @@ impl LockedWorkingCopy<'_> { pub fn discard(mut self) { // Undo the changes in memory - self.wc.load_proto(); self.wc.tree_state.take(); self.tree_state_dirty = false; self.closed = true;