Skip to content

armgit / zed

Public Imported from GitHub
0

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

Antonio Scandurra45df09245b86
diff --git a/crates/workspace/src/dock.rs b/crates/workspace/src/dock.rs
index 2b23ceb7f30..492f61c86fb 100644
--- a/crates/workspace/src/dock.rs
+++ b/crates/workspace/src/dock.rs
@@ -17,9 +17,6 @@ pub trait Panel: View {
fn label(&self, _: &AppContext) -> Option<String> {
None
}
- fn contains_focused_view(&self, _: &AppContext) -> bool {
- false
- }
}
pub trait PanelHandle {
@@ -42,7 +39,7 @@ where
}
fn is_focused(&self, cx: &WindowContext) -> bool {
- ViewHandle::is_focused(self, cx) || self.read(cx).contains_focused_view(cx)
+ ViewHandle::is_focused(self, cx)
}
fn as_any(&self) -> &AnyViewHandle {