Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Remove uneeded Workspace::project_remote_id_changed method
Max Brunsfeld026b3a1d0f87
diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rsindex 256ecfd3e90..9834f473705 100644--- a/crates/workspace/src/workspace.rs+++ b/crates/workspace/src/workspace.rs@@ -622,9 +622,8 @@ impl Workspace {cx.observe(&project, |_, _, cx| cx.notify()).detach();cx.subscribe(&project, move |this, _, event, cx| {match event {- project::Event::RemoteIdChanged(remote_id) => {+ project::Event::RemoteIdChanged(_) => {this.update_window_title(cx);- this.project_remote_id_changed(*remote_id, cx);}project::Event::CollaboratorLeft(peer_id) => {@@ -776,7 +775,8 @@ impl Workspace {}),];- let mut this = Workspace {+ cx.defer(|this, cx| this.update_window_title(cx));+ Workspace {weak_self: weak_handle.clone(),modal: None,zoomed: None,@@ -805,10 +805,7 @@ impl Workspace {leader_updates_tx,subscriptions,pane_history_timestamp,- };- this.project_remote_id_changed(project.read(cx).remote_id(), cx);- cx.defer(|this, cx| this.update_window_title(cx));- this+ }}fn new_local(@@ -2512,10 +2509,6 @@ impl Workspace {&self.active_pane}- fn project_remote_id_changed(&mut self, _project_id: Option<u64>, _cx: &mut ViewContext<Self>) {- // TODO- }-fn collaborator_left(&mut self, peer_id: PeerId, cx: &mut ViewContext<Self>) {if let Some(states_by_pane) = self.follower_states_by_leader.remove(&peer_id) {for state in states_by_pane.into_values() {