remove worktree_file_mtimes in state as it is no longer used

KCaverly and Piotr created

Co-authored-by: Piotr <piotr@zed.dev>

Change summary

crates/semantic_index/src/semantic_index.rs | 5 -----
1 file changed, 5 deletions(-)

Detailed changes

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,
                 );