Skip to content

Commit

Permalink
Remove vestigial derives (bevyengine#3343)
Browse files Browse the repository at this point in the history
These derives seem to be leftover vestiges of the old renderer.

At least removing them doesn't seem to harm anything.

edit: thanks `@forbjok` on discord for pointing this out.
  • Loading branch information
rparrett committed Dec 18, 2021
1 parent 6a0008f commit f30f833
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 234 deletions.
15 changes: 0 additions & 15 deletions crates/bevy_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ mod bevy_main;
mod bytes;
mod enum_variant_meta;
mod modules;
mod render_resource;
mod render_resources;
mod shader_defs;

use bevy_macro_utils::{derive_label, BevyManifest};
Expand All @@ -19,19 +17,6 @@ pub fn derive_bytes(input: TokenStream) -> TokenStream {
bytes::derive_bytes(input)
}

/// Derives the RenderResources trait. Each field must implement RenderResource or this will fail.
/// You can ignore fields using `#[render_resources(ignore)]`.
#[proc_macro_derive(RenderResources, attributes(render_resources))]
pub fn derive_render_resources(input: TokenStream) -> TokenStream {
render_resources::derive_render_resources(input)
}

/// Derives the RenderResource trait. The type must also implement `Bytes` or this will fail.
#[proc_macro_derive(RenderResource)]
pub fn derive_render_resource(input: TokenStream) -> TokenStream {
render_resource::derive_render_resource(input)
}

/// Derives the ShaderDefs trait. Each field must implement ShaderDef or this will fail.
/// You can ignore fields using `#[shader_defs(ignore)]`.
#[proc_macro_derive(ShaderDefs, attributes(shader_def))]
Expand Down
1 change: 0 additions & 1 deletion crates/bevy_derive/src/modules.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
pub const BEVY_ASSET: &str = "bevy_asset";
pub const BEVY_CORE: &str = "bevy_core";
pub const BEVY_RENDER: &str = "bevy_render";
pub const BEVY_UTILS: &str = "bevy_utils";
35 changes: 0 additions & 35 deletions crates/bevy_derive/src/render_resource.rs

This file was deleted.

183 changes: 0 additions & 183 deletions crates/bevy_derive/src/render_resources.rs

This file was deleted.

0 comments on commit f30f833

Please sign in to comment.