Skip to content

Commit 5114589

Browse files
authored
Clean up mentions to update_archetype_component* functions (#21043)
# Objective There are still mentions of `update_archetype_component*` functions in a few places. ## Solution Yeet.
1 parent 7e45c45 commit 5114589

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

crates/bevy_ecs/src/query/fetch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3036,7 +3036,7 @@ mod tests {
30363036
struct NonReleaseQueryData;
30373037

30383038
/// SAFETY:
3039-
/// `update_component_access` and `update_archetype_component_access` do nothing.
3039+
/// `update_component_access` do nothing.
30403040
/// This is sound because `fetch` does not access components.
30413041
unsafe impl WorldQuery for NonReleaseQueryData {
30423042
type Fetch<'w> = ();

crates/bevy_ecs/src/schedule/executor/multi_threaded.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,6 @@ unsafe fn evaluate_and_fold_conditions(
849849
// SAFETY:
850850
// - The caller ensures that `world` has permission to read any data
851851
// required by the condition.
852-
// - `update_archetype_component_access` has been called for condition.
853852
unsafe {
854853
__rust_begin_short_backtrace::readonly_run_unsafe(&mut **condition, world)
855854
}

crates/bevy_ecs/src/system/system.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ pub trait System: Send + Sync + 'static {
135135
unsafe { self.validate_param_unsafe(world_cell) }?;
136136
// SAFETY:
137137
// - We have exclusive access to the entire world.
138-
// - `update_archetype_component_access` has been called.
139138
unsafe { self.run_unsafe(input, world_cell) }
140139
}
141140

@@ -241,7 +240,6 @@ pub unsafe trait ReadOnlySystem: System {
241240
unsafe { self.validate_param_unsafe(world) }?;
242241
// SAFETY:
243242
// - We have read-only access to the entire world.
244-
// - `update_archetype_component_access` has been called.
245243
unsafe { self.run_unsafe(input, world) }
246244
}
247245
}

0 commit comments

Comments
 (0)