From cf05738f68cdb1fbdc19526e80d166e6afb12554 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Fri, 1 Jul 2022 14:40:39 +0200 Subject: [PATCH] Remove redundant calls to `poll_snapshot` --- crates/project/src/worktree.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/crates/project/src/worktree.rs b/crates/project/src/worktree.rs index 04c8cc4ad7b254d6e5ddea6f90e27509fdcda801..949bc1bdc45ebcf13cf9d4e0c1ca05a979af73dc 100644 --- a/crates/project/src/worktree.rs +++ b/crates/project/src/worktree.rs @@ -569,7 +569,6 @@ impl LocalWorktree { .refresh_entry(path, abs_path, None, cx) }) .await?; - this.update(&mut cx, |this, cx| this.poll_snapshot(cx)); Ok(( File { entry_id: Some(entry.id), @@ -710,10 +709,6 @@ impl LocalWorktree { ) }) .await?; - this.update(&mut cx, |this, cx| { - let this = this.as_local_mut().unwrap(); - this.poll_snapshot(cx); - }); Ok(entry) })) } @@ -749,10 +744,6 @@ impl LocalWorktree { ) }) .await?; - this.update(&mut cx, |this, cx| { - let this = this.as_local_mut().unwrap(); - this.poll_snapshot(cx); - }); Ok(entry) })) } @@ -786,10 +777,6 @@ impl LocalWorktree { .refresh_entry(path, abs_path, None, cx) }) .await?; - this.update(&mut cx, |this, cx| { - let this = this.as_local_mut().unwrap(); - this.poll_snapshot(cx); - }); Ok(entry) }) }