Remove unused code
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
37d3ed5f5f
commit
45df09245b
1 changed files with 1 additions and 4 deletions
|
@ -17,9 +17,6 @@ pub trait Panel: View {
|
||||||
fn label(&self, _: &AppContext) -> Option<String> {
|
fn label(&self, _: &AppContext) -> Option<String> {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
fn contains_focused_view(&self, _: &AppContext) -> bool {
|
|
||||||
false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait PanelHandle {
|
pub trait PanelHandle {
|
||||||
|
@ -42,7 +39,7 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
fn is_focused(&self, cx: &WindowContext) -> bool {
|
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 {
|
fn as_any(&self) -> &AnyViewHandle {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue