Skip to content

Commit

Permalink
remove dead code: ShaderDefs derive (bevyengine#3490)
Browse files Browse the repository at this point in the history
# Objective

- remove some dead code and see if someone isn't happy about it


Co-authored-by: François <8672791+mockersf@users.noreply.github.com>
  • Loading branch information
mockersf and mockersf committed Jan 1, 2022
1 parent 5b3c2b2 commit 264d8f2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 74 deletions.
8 changes: 0 additions & 8 deletions crates/bevy_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ mod bevy_main;
mod bytes;
mod enum_variant_meta;
mod modules;
mod shader_defs;

use bevy_macro_utils::{derive_label, BevyManifest};
use proc_macro::TokenStream;
Expand All @@ -17,13 +16,6 @@ pub fn derive_bytes(input: TokenStream) -> TokenStream {
bytes::derive_bytes(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))]
pub fn derive_shader_defs(input: TokenStream) -> TokenStream {
shader_defs::derive_shader_defs(input)
}

/// Generates a dynamic plugin entry point function for the given `Plugin` type.
#[proc_macro_derive(DynamicPlugin)]
pub fn derive_dynamic_plugin(input: TokenStream) -> TokenStream {
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,3 +1,2 @@
pub const BEVY_CORE: &str = "bevy_core";
pub const BEVY_RENDER: &str = "bevy_render";
pub const BEVY_UTILS: &str = "bevy_utils";
65 changes: 0 additions & 65 deletions crates/bevy_derive/src/shader_defs.rs

This file was deleted.

0 comments on commit 264d8f2

Please sign in to comment.