mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-16 00:56:23 +00:00
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:
parent
b5e628ab07
commit
a2f750171a
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue