forked from StrafesNET/strafe-project
common: delete unused ModesUpdate
This commit is contained in:
parent
9896a09576
commit
561e41c760
@ -365,18 +365,6 @@ impl ModeUpdate{
|
||||
}
|
||||
}
|
||||
}
|
||||
pub struct ModesUpdate{
|
||||
modes:HashMap<ModeId,ModeUpdate>,
|
||||
}
|
||||
impl ModesUpdate{
|
||||
fn apply_to(self,modes:&mut Modes){
|
||||
for (ModeId(mode_id),mode_update) in self.modes{
|
||||
if let Some(mode)=modes.modes.get_mut(mode_id as usize){
|
||||
mode_update.apply_to(mode);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct ModeBuilder{
|
||||
mode:Mode,
|
||||
|
Loading…
x
Reference in New Issue
Block a user