yoda: iced_winit dead-code purge (29→0 warnings)
Some checks are pending
Audit / vulnerabilities (push) Waiting to run
Check / wasm (push) Waiting to run
Check / widget (push) Waiting to run
Document / all (push) Waiting to run
Format / all (push) Waiting to run
Lint / all (push) Waiting to run
Test / all (macOS-latest, 1.88) (push) Waiting to run
Test / all (macOS-latest, beta) (push) Waiting to run
Test / all (macOS-latest, stable) (push) Waiting to run
Test / all (ubuntu-latest, 1.88) (push) Waiting to run
Test / all (ubuntu-latest, beta) (push) Waiting to run
Test / all (ubuntu-latest, stable) (push) Waiting to run
Test / all (windows-latest, 1.88) (push) Waiting to run
Test / all (windows-latest, beta) (push) Waiting to run
Test / all (windows-latest, stable) (push) Waiting to run
Some checks are pending
Audit / vulnerabilities (push) Waiting to run
Check / wasm (push) Waiting to run
Check / widget (push) Waiting to run
Document / all (push) Waiting to run
Format / all (push) Waiting to run
Lint / all (push) Waiting to run
Test / all (macOS-latest, 1.88) (push) Waiting to run
Test / all (macOS-latest, beta) (push) Waiting to run
Test / all (macOS-latest, stable) (push) Waiting to run
Test / all (ubuntu-latest, 1.88) (push) Waiting to run
Test / all (ubuntu-latest, beta) (push) Waiting to run
Test / all (ubuntu-latest, stable) (push) Waiting to run
Test / all (windows-latest, 1.88) (push) Waiting to run
Test / all (windows-latest, beta) (push) Waiting to run
Test / all (windows-latest, stable) (push) Waiting to run
Removed code paths inherited from past refactors that no longer have any
reader:
- ViewFn type alias (window.rs)
- a11y_enabled flag and resized flag (lib.rs) — assigned but never read
- BootConfig.fonts/graphics_settings/is_wayland — already passed to
run_instance(...) directly; the BootConfig copies were never read
- Runner.system_theme oneshot::Sender — stored but no producer ever
wired; receiver side already falls back to default
- event_loop/control_flow.rs — local ControlFlow enum, all callers use
winit::event_loop::ControlFlow
- event_loop/proxy.rs — Proxy<Message> never constructed
- Error::Connect(ConnectError) variant — never constructed
- Common.has_focus / ime_pos / ime_size — never read after assignment
- SctkPopupData.grab — replicated settings.grab, never read back
- SubsurfaceEventVariant::Created.surface field — destructure does
`surface: _` everywhere, the value is unused
Visibility tightening:
- a11y.rs WinitActivationHandler / WinitActionHandler /
WinitDeactivationHandler: pub proxy → pub(crate) proxy
- conversion::touch_event: pub → private (no external callers)
- proxy::Proxy:🆕 pub → pub(crate)
Allow attributes (intentional, not warning-suppression):
- conversion::RawImage: #[allow(dead_code)] — fields kept for
IconProvider downcast-via-AsAny on winit's side
- event_loop::Error: #[allow(dead_code)] — variant payloads kept for
Debug, never inspected programmatically
- lib.rs Event<Message>: #[allow(hidden_glob_reexports)] — intentional
shadow of winit::event::Event coming from `pub use winit`
- window.rs/lib.rs: #[allow(deprecated)] on enable_ime/disable_ime/
process_event with TODOs for set_ime_* → request_ime_update and
try_next → try_recv migrations
Five orphan imports also removed (Hash/Hasher, BorrowMut, 3× Compositor).
Leyoda 2026 – GPLv3
This commit is contained in:
parent
aa1c2593ac
commit
e424487704
13 changed files with 22 additions and 177 deletions
|
|
@ -33,7 +33,7 @@ use std::{
|
|||
};
|
||||
use wayland_backend::client::ObjectId;
|
||||
use winit::{
|
||||
dpi::{LogicalPosition, LogicalSize},
|
||||
dpi::LogicalSize,
|
||||
platform::wayland::WindowExtWayland,
|
||||
};
|
||||
|
||||
|
|
@ -229,9 +229,6 @@ impl CommonSurface {
|
|||
#[derive(Debug, Clone)]
|
||||
pub struct Common {
|
||||
pub(crate) fractional_scale: Option<f64>,
|
||||
pub(crate) has_focus: bool,
|
||||
pub(crate) ime_pos: LogicalPosition<u32>,
|
||||
pub(crate) ime_size: LogicalSize<u32>,
|
||||
pub(crate) size: LogicalSize<u32>,
|
||||
pub(crate) requested_size: (Option<u32>, Option<u32>),
|
||||
pub(crate) wp_viewport: Option<WpViewport>,
|
||||
|
|
@ -241,9 +238,6 @@ impl Default for Common {
|
|||
fn default() -> Self {
|
||||
Self {
|
||||
fractional_scale: Default::default(),
|
||||
has_focus: Default::default(),
|
||||
ime_pos: Default::default(),
|
||||
ime_size: Default::default(),
|
||||
size: LogicalSize::new(1, 1),
|
||||
requested_size: (None, None),
|
||||
wp_viewport: None,
|
||||
|
|
@ -336,7 +330,6 @@ pub struct SctkPopupData {
|
|||
pub(crate) parent: PopupParent,
|
||||
pub(crate) toplevel: WlSurface,
|
||||
pub(crate) positioner: Arc<XdgPositioner>,
|
||||
pub(crate) grab: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
@ -877,7 +870,6 @@ impl SctkState {
|
|||
parent: parent.clone(),
|
||||
toplevel: toplevel.clone(),
|
||||
positioner: positioner.clone(),
|
||||
grab: settings.grab,
|
||||
},
|
||||
last_configure: None,
|
||||
_pending_requests: Default::default(),
|
||||
|
|
@ -1519,7 +1511,6 @@ impl SctkState {
|
|||
SctkEvent::SubsurfaceEvent (crate::sctk_event::SubsurfaceEventVariant::Created{
|
||||
parent_id,
|
||||
parent,
|
||||
surface: subsurface,
|
||||
qh: self.queue_handle.clone(),
|
||||
common_surface,
|
||||
surface_id: subsurface_settings.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue