Remove small pieces of unused code

This commit is contained in:
Max Brunsfeld 2021-04-02 14:26:53 -07:00
parent ce6ca13b13
commit dd31b870c3
10 changed files with 6 additions and 31 deletions

View file

@ -60,10 +60,8 @@ impl Worktree {
tree.0.write().scanning = true;
let tree = tree.clone();
let (tx, rx) = smol::channel::bounded(1);
let task = ctx.background_executor().spawn(async move {
let _ = tx.send(tree.scan_dirs()?).await;
tree.scan_dirs()?;
Ok(())
});