diff --git a/crates/project/src/worktree.rs b/crates/project/src/worktree.rs index 367db436c7..795ca23c8f 100644 --- a/crates/project/src/worktree.rs +++ b/crates/project/src/worktree.rs @@ -7,7 +7,7 @@ use ::ignore::gitignore::{Gitignore, GitignoreBuilder}; use anyhow::{anyhow, Context, Result}; use client::{proto, Client, TypedEnvelope}; use clock::ReplicaId; -use collections::{HashMap, VecDeque}; +use collections::HashMap; use futures::{ channel::mpsc::{self, UnboundedSender}, Stream, StreamExt, @@ -84,7 +84,6 @@ pub struct RemoteWorktree { queued_operations: Vec<(u64, Operation)>, diagnostic_summaries: TreeMap, weak: bool, - pending_updates: VecDeque, } #[derive(Clone)] @@ -238,7 +237,6 @@ impl Worktree { }), ), weak, - pending_updates: Default::default(), }) }); @@ -857,10 +855,6 @@ impl RemoteWorktree { Ok(()) } - pub fn has_pending_updates(&self) -> bool { - !self.pending_updates.is_empty() - } - pub fn update_diagnostic_summary( &mut self, path: Arc, diff --git a/crates/server/src/rpc.rs b/crates/server/src/rpc.rs index b4559a4bcb..39d43e7ea7 100644 --- a/crates/server/src/rpc.rs +++ b/crates/server/src/rpc.rs @@ -4380,12 +4380,6 @@ mod tests { .worktrees(cx) .map(|worktree| { let worktree = worktree.read(cx); - assert!( - !worktree.as_remote().unwrap().has_pending_updates(), - "Guest {} worktree {:?} contains deferred updates", - guest_id, - worktree.id() - ); (worktree.id(), worktree.snapshot()) }) .collect::>()