Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Remove unused code in test
Joseph T. Lyonsb0e81c58dc9d
diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rsindex b650d272fbd..b2b8b2e4bd7 100644--- a/crates/project_panel/src/project_panel.rs+++ b/crates/project_panel/src/project_panel.rs@@ -2717,16 +2717,6 @@ mod tests {let (_, workspace) = cx.add_window(|cx| Workspace::test_new(project.clone(), cx));let panel = workspace.update(cx, |workspace, cx| ProjectPanel::new(workspace, cx));- let new_search_events_count = Arc::new(AtomicUsize::new(0));- let _subscription = panel.update(cx, |_, cx| {- let subcription_count = Arc::clone(&new_search_events_count);- cx.subscribe(&cx.handle(), move |_, _, event, _| {- if matches!(event, Event::NewSearchInDirectory { .. }) {- subcription_count.fetch_add(1, atomic::Ordering::SeqCst);- }- })- });-panel.update(cx, |panel, cx| {panel.collapse_all_entries(&CollapseAllEntries, cx)});