From 45df09245b867a37475f405c0a7ee9e9a2222ac5 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Tue, 9 May 2023 18:06:59 +0200 Subject: [PATCH] Remove unused code Co-Authored-By: Nathan Sobo --- crates/workspace/src/dock.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/workspace/src/dock.rs b/crates/workspace/src/dock.rs index 2b23ceb7f308bc6cc0cb83073757d161eeb5796f..492f61c86fbdd37131668d1f9b3220e106964ca8 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 { 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 {