@@ -5,7 +5,6 @@ use crate::{
55 condition:: { BoxedCondition , Condition } ,
66 graph_utils:: { Ambiguity , Dependency , DependencyKind , GraphInfo } ,
77 set:: { BoxedSystemSet , IntoSystemSet , SystemSet } ,
8- state:: { OnUpdate , States } ,
98 } ,
109 system:: { BoxedSystem , IntoSystem , System } ,
1110} ;
@@ -102,8 +101,6 @@ pub trait IntoSystemSetConfig: sealed::IntoSystemSetConfig {
102101 /// The `Condition` will be evaluated at most once (per schedule run),
103102 /// the first time a system in this set prepares to run.
104103 fn run_if < P > ( self , condition : impl Condition < P > ) -> SystemSetConfig ;
105- /// Add this set to the [`OnUpdate(state)`](OnUpdate) set.
106- fn on_update ( self , state : impl States ) -> SystemSetConfig ;
107104 /// Suppress warnings and errors that would result from systems in this set having ambiguities
108105 /// (conflicting access but indeterminate order) with systems in `set`.
109106 fn ambiguous_with < M > ( self , set : impl IntoSystemSet < M > ) -> SystemSetConfig ;
@@ -146,10 +143,6 @@ where
146143 self . into_config ( ) . run_if ( condition)
147144 }
148145
149- fn on_update ( self , state : impl States ) -> SystemSetConfig {
150- self . into_config ( ) . on_update ( state)
151- }
152-
153146 fn ambiguous_with < M > ( self , set : impl IntoSystemSet < M > ) -> SystemSetConfig {
154147 self . into_config ( ) . ambiguous_with ( set)
155148 }
@@ -190,10 +183,6 @@ impl IntoSystemSetConfig for BoxedSystemSet {
190183 self . into_config ( ) . run_if ( condition)
191184 }
192185
193- fn on_update ( self , state : impl States ) -> SystemSetConfig {
194- self . into_config ( ) . on_update ( state)
195- }
196-
197186 fn ambiguous_with < M > ( self , set : impl IntoSystemSet < M > ) -> SystemSetConfig {
198187 self . into_config ( ) . ambiguous_with ( set)
199188 }
@@ -270,10 +259,6 @@ impl IntoSystemSetConfig for SystemSetConfig {
270259 self
271260 }
272261
273- fn on_update ( self , state : impl States ) -> SystemSetConfig {
274- self . in_set ( OnUpdate ( state) )
275- }
276-
277262 fn ambiguous_with < M > ( mut self , set : impl IntoSystemSet < M > ) -> Self {
278263 ambiguous_with ( & mut self . graph_info , Box :: new ( set. into_system_set ( ) ) ) ;
279264 self
@@ -310,8 +295,6 @@ pub trait IntoSystemConfig<Params>: sealed::IntoSystemConfig<Params> {
310295 /// The `Condition` will be evaluated at most once (per schedule run),
311296 /// when the system prepares to run.
312297 fn run_if < P > ( self , condition : impl Condition < P > ) -> SystemConfig ;
313- /// Add this system to the [`OnUpdate(state)`](OnUpdate) set.
314- fn on_update ( self , state : impl States ) -> SystemConfig ;
315298 /// Suppress warnings and errors that would result from this system having ambiguities
316299 /// (conflicting access but indeterminate order) with systems in `set`.
317300 fn ambiguous_with < M > ( self , set : impl IntoSystemSet < M > ) -> SystemConfig ;
@@ -354,10 +337,6 @@ where
354337 self . into_config ( ) . run_if ( condition)
355338 }
356339
357- fn on_update ( self , state : impl States ) -> SystemConfig {
358- self . into_config ( ) . on_update ( state)
359- }
360-
361340 fn ambiguous_with < M > ( self , set : impl IntoSystemSet < M > ) -> SystemConfig {
362341 self . into_config ( ) . ambiguous_with ( set)
363342 }
@@ -398,10 +377,6 @@ impl IntoSystemConfig<()> for BoxedSystem<(), ()> {
398377 self . into_config ( ) . run_if ( condition)
399378 }
400379
401- fn on_update ( self , state : impl States ) -> SystemConfig {
402- self . into_config ( ) . on_update ( state)
403- }
404-
405380 fn ambiguous_with < M > ( self , set : impl IntoSystemSet < M > ) -> SystemConfig {
406381 self . into_config ( ) . ambiguous_with ( set)
407382 }
@@ -470,10 +445,6 @@ impl IntoSystemConfig<()> for SystemConfig {
470445 self
471446 }
472447
473- fn on_update ( self , state : impl States ) -> Self {
474- self . in_set ( OnUpdate ( state) )
475- }
476-
477448 fn ambiguous_with < M > ( mut self , set : impl IntoSystemSet < M > ) -> Self {
478449 ambiguous_with ( & mut self . graph_info , Box :: new ( set. into_system_set ( ) ) ) ;
479450 self
@@ -549,11 +520,6 @@ where
549520 self . into_configs ( ) . after ( set)
550521 }
551522
552- /// Add this set to the [`OnUpdate(state)`](OnUpdate) set.
553- fn on_update ( self , state : impl States ) -> SystemConfigs {
554- self . into_configs ( ) . on_update ( state)
555- }
556-
557523 /// Suppress warnings and errors that would result from these systems having ambiguities
558524 /// (conflicting access but indeterminate order) with systems in `set`.
559525 fn ambiguous_with < M > ( self , set : impl IntoSystemSet < M > ) -> SystemConfigs {
@@ -654,10 +620,6 @@ impl IntoSystemConfigs<()> for SystemConfigs {
654620 self
655621 }
656622
657- fn on_update ( self , state : impl States ) -> Self {
658- self . in_set ( OnUpdate ( state) )
659- }
660-
661623 fn chain ( mut self ) -> Self {
662624 self . chained = true ;
663625 self
0 commit comments