Skip to content

Commit a1d771a

Browse files
authored
Remove base set error variants of ScheduleBuildError (#8269)
# Objective With the removal of base sets, some variants of `ScheduleBuildError` can never occur and should be removed. ## Solution - Remove the obsolete variants of `ScheduleBuildError`. - Also fix a doc comment which mentioned base sets. --- ## Changelog ### Removed - Remove `ScheduleBuildError::SystemInMultipleBaseSets` and `ScheduleBuildError::SetInMultipleBaseSets`.
1 parent 3533c3d commit a1d771a

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

crates/bevy_ecs/src/schedule/schedule.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,20 +1495,6 @@ pub enum ScheduleBuildError {
14951495
/// Tried to run a schedule before all of its systems have been initialized.
14961496
#[error("Systems in schedule have not been initialized.")]
14971497
Uninitialized,
1498-
/// Tried to add a system to multiple base sets.
1499-
#[error("System `{system:?}` is in the base sets {first_set:?} and {second_set:?}, but systems can only belong to one base set.")]
1500-
SystemInMultipleBaseSets {
1501-
system: String,
1502-
first_set: String,
1503-
second_set: String,
1504-
},
1505-
/// Tried to add a set to multiple base sets.
1506-
#[error("Set `{set:?}` is in the base sets {first_set:?} and {second_set:?}, but sets can only belong to one base set.")]
1507-
SetInMultipleBaseSets {
1508-
set: String,
1509-
first_set: String,
1510-
second_set: String,
1511-
},
15121498
}
15131499

15141500
/// Specifies how schedule construction should respond to detecting a certain kind of issue.

crates/bevy_ecs/src/schedule/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub struct OnTransition<S: States> {
6868

6969
/// A [`SystemSet`] that will run within `CoreSet::Update` when this state is active.
7070
///
71-
/// This set, when created via `App::add_state`, is configured with both a base set and a run condition.
71+
/// This set, when created via `App::add_state`, is configured with a run condition.
7272
/// If all you want is the run condition, use the [`in_state`](crate::schedule::common_conditions::in_state)
7373
/// [condition](super::Condition) directly.
7474
#[derive(SystemSet, Clone, Debug, PartialEq, Eq, Hash)]

0 commit comments

Comments
 (0)