Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
panel: Remove unused panel crate (#63742)
Xiaobo Liuab7afbff3942
diff --git a/Cargo.lock b/Cargo.lockindex eec537b2dfa..8a75d45cf36 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.tomlindex 204959209cd..8c4c71f0446 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.tomlindex 1dd2868db04..0916c8450d9 100644--- a/crates/git_ui/Cargo.toml+++ b/crates/git_ui/Cargo.toml@@ -43,7 +43,6 @@ markdown.workspace = truemenu.workspace = truemulti_buffer.workspace = truenotifications.workspace = true-panel.workspace = truepicker.workspace = trueproject.workspace = trueprompt_store.workspace = truediff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rsindex 0d6167298d8..d136140d587 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.tomldeleted file mode 100644index 4e7c81804d3..00000000000--- 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 = truediff --git a/crates/panel/LICENSE-GPL b/crates/panel/LICENSE-GPLdeleted file mode 120000index 89e542f750c..00000000000--- a/crates/panel/LICENSE-GPL+++ /dev/null@@ -1 +0,0 @@-../../LICENSE-GPL\ No newline at end of filediff --git a/crates/panel/src/panel.rs b/crates/panel/src/panel.rsdeleted file mode 100644index e3f9a3e876b..00000000000--- 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.rsindex 6dea6ec15a9..1285b166310 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",