Skip to content

Commit 1d9ca46

Browse files
committed
chore(core): remove unused EventCtx.transition_out field
[no changelog]
1 parent 73813b7 commit 1d9ca46

3 files changed

Lines changed: 2 additions & 14 deletions

File tree

core/embed/rust/src/ui/component/base.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,6 @@ pub struct EventCtx {
478478
root_repaint_requested: bool,
479479
swipe_disable_req: bool,
480480
swipe_enable_req: bool,
481-
transition_out: Option<AttachType>,
482481
}
483482

484483
impl EventCtx {
@@ -502,7 +501,6 @@ impl EventCtx {
502501
root_repaint_requested: false,
503502
swipe_disable_req: false,
504503
swipe_enable_req: false,
505-
transition_out: None,
506504
}
507505
}
508506

@@ -607,14 +605,6 @@ impl EventCtx {
607605
fatal_error!("Timer queue is full");
608606
}
609607
}
610-
611-
pub fn set_transition_out(&mut self, attach_type: AttachType) {
612-
self.transition_out = Some(attach_type);
613-
}
614-
615-
pub fn get_transition_out(&self) -> Option<AttachType> {
616-
self.transition_out
617-
}
618608
}
619609

620610
/// Component::Msg for component parts of a swipe flow. Converting results of

core/embed/rust/src/ui/flow/swipe.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,6 @@ impl SwipeFlow {
272272
Some(LayoutState::Attached(ctx.button_request()))
273273
}
274274
Decision::Return(msg) => {
275-
ctx.set_transition_out(return_transition);
276275
self.swipe.reset();
277276
self.allow_swipe = true;
278277
self.returned_value = Some(msg.try_into());

core/embed/rust/src/ui/layout_delizia/component/swipe_up_screen.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::ui::{
2-
component::{base::AttachType, Component, Event, EventCtx, SwipeDetect},
2+
component::{Component, Event, EventCtx, SwipeDetect},
33
event::SwipeEvent,
44
flow::Swipable,
55
geometry::Rect,
@@ -49,8 +49,7 @@ impl<T: Swipable + Component> Component for SwipeUpScreen<T> {
4949
.swipe
5050
.event(ctx, event, self.content.get_swipe_config())
5151
{
52-
Some(SwipeEvent::End(dir)) => {
53-
ctx.set_transition_out(AttachType::Swipe(dir));
52+
Some(SwipeEvent::End(_dir)) => {
5453
return Some(SwipeUpScreenMsg::Swiped);
5554
}
5655
Some(e) => Event::Swipe(e),

0 commit comments

Comments
 (0)