Skip to content

Commit 769edc1

Browse files
Removed redundant storage type in EventWriterState
1 parent eda6ffa commit 769edc1

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

crates/bevy_ecs/src/query/event.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ impl<'a, T: Component> Fetch<'a> for EventWriterFetch<T> {
8787
}
8888
struct EventWriterState<T> {
8989
event_component_id: ComponentId,
90-
event_storage_type: StorageType,
9190
/// EventWriter query parameters require write access to &mut Events<T>
9291
write_state: WriteState<Events<T>>,
9392
}
@@ -97,11 +96,6 @@ unsafe impl<T: Component> FetchState for EventWriterState<T> {
9796
let event_component_id = world.components.get_id(TypeId::of::<Events<T>>()).unwrap();
9897
EventWriterState {
9998
event_component_id,
100-
event_storage_type: world
101-
.components
102-
.get_info(event_component_id)
103-
.unwrap()
104-
.storage_type(),
10599
write_state: WriteState::<Events<T>>::init(world),
106100
}
107101
}

0 commit comments

Comments
 (0)