Files
zed/crates/theme
Parker Loflin 5a0e9521f6 Remove dead code and no-op options from UI components (#67201)
## 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
2026-11-19 21:54:18 +00:00
..