working_copy: remove redundant reload of checkout state on discard()

There's no way to mutate operation_id other than finish().
This commit is contained in:
Yuya Nishihara 2022-10-04 12:12:21 +09:00 committed by Martin von Zweigbergk
parent b5e628ab07
commit a2f750171a

View file

@ -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;