Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
remove worktree_file_mtimes in state as it is no longer used
KCaverlyafe0e74868f6
diff --git a/crates/semantic_index/src/semantic_index.rs b/crates/semantic_index/src/semantic_index.rsindex 65b7e405256..9d789d0eaca 100644--- a/crates/semantic_index/src/semantic_index.rs+++ b/crates/semantic_index/src/semantic_index.rs@@ -94,7 +94,6 @@ pub struct SemanticIndex {struct ProjectState {worktree_db_ids: Vec<(WorktreeId, i64)>,- worktree_file_mtimes: HashMap<WorktreeId, HashMap<PathBuf, SystemTime>>,subscription: gpui::Subscription,outstanding_job_count_rx: watch::Receiver<usize>,_outstanding_job_count_tx: Arc<Mutex<watch::Sender<usize>>>,@@ -122,7 +121,6 @@ impl ProjectState {cx: &mut AppContext,subscription: gpui::Subscription,worktree_db_ids: Vec<(WorktreeId, i64)>,- worktree_file_mtimes: HashMap<WorktreeId, HashMap<PathBuf, SystemTime>>,outstanding_job_count_rx: watch::Receiver<usize>,_outstanding_job_count_tx: Arc<Mutex<watch::Sender<usize>>>,) -> Self {@@ -142,7 +140,6 @@ impl ProjectState {Self {worktree_db_ids,- worktree_file_mtimes,outstanding_job_count_rx,_outstanding_job_count_tx,subscription,@@ -834,7 +831,6 @@ impl SemanticIndex {let job_count_tx = Arc::new(Mutex::new(job_count_tx));let job_count_tx_longlived = job_count_tx.clone();- let worktree_file_mtimes_all = worktree_file_mtimes.clone();let worktree_files = cx.background().spawn(async move {@@ -896,7 +892,6 @@ impl SemanticIndex {cx,_subscription,worktree_db_ids,- worktree_file_mtimes_all,job_count_rx,job_count_tx_longlived,);