libcosmic-yoda/src/widget/dropdown
Lionel DARNIS 84437e219b yoda: libcosmic-yoda dead-code purge (14→0 warnings)
Real bug fixes:
- spin_button::vertical(): was constructing the SpinButton with
  Orientation::Horizontal — vertical() rendered horizontally. Fixed
  to use Orientation::Vertical, which also resolves the
  'Vertical never constructed' warning.
- text_input/input.rs: rewrite the iterator-skip logic for trailing
  icon layout. The previous `let mut icon_layout = ...; if has_start
  ... = ...; ... = ...;` triggered two value-never-read warnings and
  obscured the intent. Now it reads as 'skip text, optionally skip
  start-icon, then take the trailing-icon layout'.

Dead code removed:
- core::Core::portal_is_high_contrast — assigned at construction,
  never read anywhere
- widget::menu::menu_bar::bar_pressed field and the
  pub fn get_mut_or_default helper — no callers
- widget::popover::State — declared, never constructed
- widget::segmented_button::widget::Focus.now — sibling of updated_at,
  never read
- widget::wayland::tooltip::widget::Variant — orphan enum (and the
  cargo fix follow-up dropped a now-unused Element import)
- widget::button::widget::Button::is_hovered method — trivial getter
  with no callers; the underlying `is_hovered` field is still used

Visibility / nits:
- segmented_button::widget::TabDragSource: gain pub(super) so the
  pub(super) field tab_drag stops exposing a more private type
- widget::menu::flex::resolve: #[allow(dead_code)] (170-line public
  helper, kept for future use)
- app/cosmic.rs: drop one unreachable arm in the surface-message match
- widget::dropdown::multi: drop unused Paragraph import

Leyoda 2026 – GPLv3
2026-05-05 19:02:31 +02:00
..
menu yoda: cargo fix --lib (libcosmic-yoda) — drop 99 trivial warnings 2026-05-05 16:27:29 +02:00
multi yoda: libcosmic-yoda dead-code purge (14→0 warnings) 2026-05-05 19:02:31 +02:00
mod.rs yoda: ungate remaining winit+wayland combined cfgs 2026-04-23 17:36:21 +02:00
operation.rs yoda: cargo fix --lib (libcosmic-yoda) — drop 99 trivial warnings 2026-05-05 16:27:29 +02:00
widget.rs yoda: cargo fix --lib (libcosmic-yoda) — drop 99 trivial warnings 2026-05-05 16:27:29 +02:00