Clean up final remaining code paths calling old diff update method
This commit is contained in:
parent
f40c498491
commit
5e39ba596e
8 changed files with 117 additions and 142 deletions
|
@ -161,13 +161,6 @@ impl BufferDiff {
|
|||
self.tree = SumTree::new();
|
||||
}
|
||||
|
||||
pub fn needs_update(&self, buffer: &text::BufferSnapshot) -> bool {
|
||||
match &self.last_buffer_version {
|
||||
Some(last) => buffer.version().changed_since(last),
|
||||
None => true,
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn update(&mut self, diff_base: &str, buffer: &text::BufferSnapshot) {
|
||||
let mut tree = SumTree::new();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue