panel: Remove unused panel crate (#63742)

# Objective

remove unused crate

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

---

Release Notes:

- N/A

---------

Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
Co-authored-by: MrSubidubi <finn@zed.dev>
This commit is contained in:
Xiaobo LiuandMrSubidubi authored and GitHub committed 2026-09-04 10:08:26 +00:00
1 parent 184971d11d
commit 83ffa665ed
8 files changed
-70

No files matched your search

Generated
-10
View File
@@ -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"
-2
View File
@@ -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" }
-1
View File
@@ -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
-3
View File
@@ -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()
-17
View File
@@ -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
-1
View File
@@ -1 +0,0 @@
../../LICENSE-GPL
-35
View File
@@ -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()
}
}
-1
View File
@@ -5938,7 +5938,6 @@ mod tests {
"outline",
"outline_panel",
"pane",
"panel",
"picker",
"project_panel",
"project_search",