Skip to content

Commit 01d2b85

Browse files
authored
Remove dead states code from bevy_ecs (#19210)
`bevy_ecs` was meant to have the `States` and `SubStates` `proc_macro_derive`s removed when the separate `bevy_state` [was created](#13216) but they were missed.
1 parent 673e70c commit 01d2b85

File tree

2 files changed

+0
-155
lines changed

2 files changed

+0
-155
lines changed

crates/bevy_ecs/macros/src/lib.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ extern crate proc_macro;
66
mod component;
77
mod query_data;
88
mod query_filter;
9-
mod states;
109
mod world_query;
1110

1211
use crate::{
@@ -548,16 +547,6 @@ pub fn derive_component(input: TokenStream) -> TokenStream {
548547
component::derive_component(input)
549548
}
550549

551-
#[proc_macro_derive(States)]
552-
pub fn derive_states(input: TokenStream) -> TokenStream {
553-
states::derive_states(input)
554-
}
555-
556-
#[proc_macro_derive(SubStates, attributes(source))]
557-
pub fn derive_substates(input: TokenStream) -> TokenStream {
558-
states::derive_substates(input)
559-
}
560-
561550
#[proc_macro_derive(FromWorld, attributes(from_world))]
562551
pub fn derive_from_world(input: TokenStream) -> TokenStream {
563552
let bevy_ecs_path = bevy_ecs_path();

crates/bevy_ecs/macros/src/states.rs

Lines changed: 0 additions & 144 deletions
This file was deleted.

0 commit comments

Comments
 (0)