diff --git a/lib/common/src/gameplay_modes.rs b/lib/common/src/gameplay_modes.rs index 33d73db46..711ab5861 100644 --- a/lib/common/src/gameplay_modes.rs +++ b/lib/common/src/gameplay_modes.rs @@ -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,