chore(core/delizia): remove unused imports
What changed, and why it matters
This is a routine code cleanup commit that removes or conditionally compiles unused Rust imports in two user-interface files. It does not change program behavior, fix a bug, or alter any security-relevant logic.
No security action needed. Treat as normal maintenance.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit makes two import-only changes in the Delizia UI layout code: (1) it moves crate::ui::util::Pager behind a #[cfg(feature = "micropython")] gate in frame.rs, and (2) it removes the unused StrOrBytes import from ui_firmware.rs. These are pure refactorings with no functional or security impact.
Changed components
core/embed/rust/src/ui/layout_delizia/component/frame.rscore/embed/rust/src/ui/layout_delizia/ui_firmware.rsInspect captured patch +4 / −2
diff --git a/core/embed/rust/src/ui/layout_delizia/component/frame.rs b/core/embed/rust/src/ui/layout_delizia/component/frame.rs
index 162f4344..87238eab 100644
--- a/core/embed/rust/src/ui/layout_delizia/component/frame.rs
+++ b/core/embed/rust/src/ui/layout_delizia/component/frame.rs
@@ -16,10 +16,12 @@ use crate::{
geometry::{Alignment, Direction, Insets, Point, Rect},
lerp::Lerp,
shape::{self, Renderer},
- util::Pager,
},
};
+#[cfg(feature = "micropython")]
+use crate::ui::util::Pager;
+
use super::super::theme::TITLE_HEIGHT;
#[derive(Clone)]
diff --git a/core/embed/rust/src/ui/layout_delizia/ui_firmware.rs b/core/embed/rust/src/ui/layout_delizia/ui_firmware.rs
index c170c938..42c117e8 100644
--- a/core/embed/rust/src/ui/layout_delizia/ui_firmware.rs
+++ b/core/embed/rust/src/ui/layout_delizia/ui_firmware.rs
@@ -24,7 +24,7 @@ use crate::{
geometry::{self, Direction, Offset},
layout::{
obj::{LayoutMaybeTrace, LayoutObj, RootComponent},
- util::{ContentType, PropsList, RecoveryType, StrOrBytes},
+ util::{ContentType, PropsList, RecoveryType},
},
notification::Notification,
ui_firmware::{
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.