forked from StrafesNET/strafe-project
common: delete unused ModesUpdate
This commit is contained in:
@ -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{
|
struct ModeBuilder{
|
||||||
mode:Mode,
|
mode:Mode,
|
||||||
|
Reference in New Issue
Block a user