Skip to content

Commit

Permalink
r-lanui: remove unused action
Browse files Browse the repository at this point in the history
  • Loading branch information
robgonnella committed Sep 23, 2024
1 parent 8568241 commit b8b941a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 1 addition & 2 deletions r-lanui/src/ui/store/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ use crate::config::Config;
use super::state::{Theme, ViewID};

#[derive(Debug)]
pub enum Action<'view, 'conf_id, 'theme, 'devices, 'device, 'selected, 'config> {
UpdateFocus(&'view ViewID),
pub enum Action<'conf_id, 'theme, 'devices, 'device, 'selected, 'config> {
UpdateLayout(Option<HashMap<ViewID, Rect>>),
UpdateMessage(Option<String>),
Click(Position),
Expand Down
5 changes: 0 additions & 5 deletions r-lanui/src/ui/store/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ impl Store {

pub fn update(&mut self, action: Action) {
let new_state = match action {
Action::UpdateFocus(view_id) => {
let mut state = self.state.clone();
state.focused = view_id.clone();
state
}
Action::UpdateLayout(layout) => {
let mut state = self.state.clone();
state.layout = layout;
Expand Down

0 comments on commit b8b941a

Please sign in to comment.