user: remove dead scroll state from thalamus and unconscious screens
Both had scroll: u16 fields that were never connected to any key handling or rendering. The unconscious screen renders fixed-size graph health gauges; thalamus builds a paragraph but never scrolled it. Neither needs scroll state. Co-Authored-By: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
parent
2d6a68048c
commit
2230fdf3c1
3 changed files with 9 additions and 21 deletions
|
|
@ -13,12 +13,11 @@ use super::{App, ScreenView, screen_legend};
|
|||
|
||||
pub(crate) struct ThalamusScreen {
|
||||
sampling_selected: usize,
|
||||
scroll: u16,
|
||||
}
|
||||
|
||||
impl ThalamusScreen {
|
||||
pub fn new() -> Self {
|
||||
Self { sampling_selected: 0, scroll: 0 }
|
||||
Self { sampling_selected: 0 }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -148,8 +147,7 @@ impl ScreenView for ThalamusScreen {
|
|||
|
||||
let para = Paragraph::new(lines)
|
||||
.block(block)
|
||||
.wrap(Wrap { trim: false })
|
||||
.scroll((self.scroll, 0));
|
||||
.wrap(Wrap { trim: false });
|
||||
|
||||
frame.render_widget(para, area);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue