diff --git a/Cargo.lock b/Cargo.lock index eec537b2df..8a75d45cf3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7197,7 +7197,6 @@ dependencies = [ "menu", "multi_buffer", "notifications", - "panel", "picker", "pretty_assertions", "project", @@ -12521,15 +12520,6 @@ dependencies = [ "syn 2.0.117", ] -[[package]] -name = "panel" -version = "0.1.0" -dependencies = [ - "gpui", - "ui", - "workspace", -] - [[package]] name = "parking" version = "2.2.1" diff --git a/Cargo.toml b/Cargo.toml index 204959209c..8c4c71f044 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -155,7 +155,6 @@ members = [ "crates/opencode", "crates/outline", "crates/outline_panel", - "crates/panel", "crates/path", "crates/paths", "crates/picker", @@ -423,7 +422,6 @@ openai_subscribed = { path = "crates/openai_subscribed" } opencode = { path = "crates/opencode" } outline = { path = "crates/outline" } outline_panel = { path = "crates/outline_panel" } -panel = { path = "crates/panel" } path = { path = "crates/path" } paths = { path = "crates/paths" } perf = { path = "tooling/perf" } diff --git a/crates/git_ui/Cargo.toml b/crates/git_ui/Cargo.toml index 1dd2868db0..0916c8450d 100644 --- a/crates/git_ui/Cargo.toml +++ b/crates/git_ui/Cargo.toml @@ -43,7 +43,6 @@ markdown.workspace = true menu.workspace = true multi_buffer.workspace = true notifications.workspace = true -panel.workspace = true picker.workspace = true project.workspace = true prompt_store.workspace = true diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs index 0d6167298d..d136140d58 100644 --- a/crates/git_ui/src/git_panel.rs +++ b/crates/git_ui/src/git_panel.rs @@ -62,7 +62,6 @@ use language_model::{ use menu; use multi_buffer::ExcerptBoundaryInfo; use notifications::status_toast::StatusToast; -use panel::PanelHeader; use project::git_store::GitAccess; use project::{ Fs, Project, ProjectPath, @@ -9173,8 +9172,6 @@ impl Panel for GitPanel { } } -impl PanelHeader for GitPanel {} - pub fn panel_editor_container(_window: &mut Window, cx: &mut App) -> Div { v_flex() .size_full() diff --git a/crates/panel/Cargo.toml b/crates/panel/Cargo.toml deleted file mode 100644 index 4e7c81804d..0000000000 --- a/crates/panel/Cargo.toml +++ /dev/null @@ -1,17 +0,0 @@ -[package] -name = "panel" -version = "0.1.0" -edition.workspace = true -publish.workspace = true -license = "GPL-3.0-or-later" - -[lints] -workspace = true - -[lib] -path = "src/panel.rs" - -[dependencies] -gpui.workspace = true -ui.workspace = true -workspace.workspace = true diff --git a/crates/panel/LICENSE-GPL b/crates/panel/LICENSE-GPL deleted file mode 120000 index 89e542f750..0000000000 --- a/crates/panel/LICENSE-GPL +++ /dev/null @@ -1 +0,0 @@ -../../LICENSE-GPL \ No newline at end of file diff --git a/crates/panel/src/panel.rs b/crates/panel/src/panel.rs deleted file mode 100644 index e3f9a3e876..0000000000 --- a/crates/panel/src/panel.rs +++ /dev/null @@ -1,35 +0,0 @@ -use gpui::actions; -use ui::prelude::*; - -actions!( - panel, - [ - /// Navigates to the next tab in the panel. - NextPanelTab, - /// Navigates to the previous tab in the panel. - PreviousPanelTab - ] -); - -pub trait PanelHeader: workspace::Panel {} - -/// Implement this trait to enable a panel to have tabs. -pub trait PanelTabs: PanelHeader { - /// Returns the index of the currently selected tab. - fn selected_tab(&self, cx: &mut App) -> usize; - /// Selects the tab at the given index. - fn select_tab(&self, cx: &mut App, index: usize); - /// Moves to the next tab. - fn next_tab(&self, _: NextPanelTab, cx: &mut App) -> Self; - /// Moves to the previous tab. - fn previous_tab(&self, _: PreviousPanelTab, cx: &mut App) -> Self; -} - -#[derive(IntoElement)] -pub struct PanelTab {} - -impl RenderOnce for PanelTab { - fn render(self, _window: &mut Window, _cx: &mut App) -> impl IntoElement { - div() - } -} diff --git a/crates/zed/src/zed.rs b/crates/zed/src/zed.rs index 6dea6ec15a..1285b16631 100644 --- a/crates/zed/src/zed.rs +++ b/crates/zed/src/zed.rs @@ -5938,7 +5938,6 @@ mod tests { "outline", "outline_panel", "pane", - "panel", "picker", "project_panel", "project_search",