mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-27 11:02:33 +01:00
5a0e9521f6
## Summary Removes component options and state that nothing used. No behavior changes. - `ContextMenu::header_with_link` was the only constructor of `ContextMenuItem::HeaderWithLink`. Removes both. - Removes unused options and their render paths: - `DropdownMenu::no_chevron` - `Modal::show_back` and `ModalHeader::show_back_button` - `Section::contained` and `Section::new_contained` - Removes fields that were written but never read: - `ThreadItem::is_remote`, which the sidebar computed for every row - `TreeViewItem::default_expanded` - three `SkillCreatorPage` fields - `JoinChannelTooltip::has_notes_notification` - `ContextMenu` no longer notifies after `close_submenu`, which already does, and no longer clones its focus handle just to focus it. - Removes other unused builders and helpers, such as `custom_entry_with_docs`, `Tooltip::new_element` and `ToggleState::from_any_and_all`. Also removes unused test macro arms. ## Testing - `./script/clippy` - `cargo test -p ui -p sidebar -p settings_ui` ## Self-review - [x] I've reviewed my diff for quality, security, reliability, and performance. - [x] UI changes follow the [checklist](https://zed.dev/docs/development/ui-checklist). - [x] Tests cover the new or changed behavior. Release Notes: - N/A