mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 06:05:19 +00:00
remove worktree_file_mtimes in state as it is no longer used
Co-authored-by: Piotr <piotr@zed.dev>
This commit is contained in:
parent
aa07872a24
commit
afe0e74868
1 changed files with 0 additions and 5 deletions
|
@ -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,
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue