Skip to content

Commit

Permalink
remove old Config api usage
Browse files Browse the repository at this point in the history
  • Loading branch information
cart committed Mar 15, 2022
1 parent 8a300c4 commit 59067f9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions crates/bevy_ecs/src/system/system_param.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1366,15 +1366,10 @@ where
unsafe impl<'w, 's, S: SystemParamState, P: SystemParam + 'static> SystemParamState
for StaticSystemParamState<S, P>
{
type Config = S::Config;

fn init(world: &mut World, system_meta: &mut SystemMeta, config: Self::Config) -> Self {
Self(S::init(world, system_meta, config), PhantomData)
fn init(world: &mut World, system_meta: &mut SystemMeta) -> Self {
Self(S::init(world, system_meta), PhantomData)
}

fn default_config() -> Self::Config {
S::default_config()
}
fn new_archetype(&mut self, archetype: &Archetype, system_meta: &mut SystemMeta) {
self.0.new_archetype(archetype, system_meta)
}
Expand Down

0 comments on commit 59067f9

Please sign in to comment.