mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
Remove no-longer-used dirty
field on buffer::SyntaxTree
This became unnecessary when we reworked our reparsing logic to block from 1ms on each parse.
This commit is contained in:
parent
b5d3ffb16c
commit
d77025540a
1 changed files with 0 additions and 4 deletions
|
@ -189,7 +189,6 @@ pub struct SelectionSet {
|
|||
#[derive(Clone)]
|
||||
struct SyntaxTree {
|
||||
tree: Tree,
|
||||
dirty: bool,
|
||||
version: clock::Global,
|
||||
}
|
||||
|
||||
|
@ -211,7 +210,6 @@ impl SyntaxTree {
|
|||
.into(),
|
||||
});
|
||||
delta += edit.inserted_bytes() as isize - edit.deleted_bytes() as isize;
|
||||
self.dirty = true;
|
||||
}
|
||||
self.version = buffer.version();
|
||||
}
|
||||
|
@ -990,11 +988,9 @@ impl Buffer {
|
|||
cx: &mut ModelContext<Self>,
|
||||
) {
|
||||
self.perform_autoindent(old_tree, &new_tree, language, cx);
|
||||
|
||||
self.parse_count += 1;
|
||||
*self.syntax_tree.lock() = Some(SyntaxTree {
|
||||
tree: new_tree,
|
||||
dirty: false,
|
||||
version: new_version,
|
||||
});
|
||||
cx.emit(Event::Reparsed);
|
||||
|
|
Loading…
Reference in a new issue