Remove unused macros and imports to appease compiler warnings

https://github.com/iceiix/steven/issues/1
This commit is contained in:
ice_iix 2018-09-29 23:52:47 -07:00
parent d6fa1d0a0b
commit be46377842
1 changed files with 1 additions and 20 deletions

View File

@ -8,7 +8,7 @@ extern crate lazy_static;
extern crate steven_shared as shared;
use shared::{Axis, Direction, Position};
use collision::{Aabb, Aabb3};
use collision::Aabb3;
use cgmath::Point3;
pub mod material;
@ -44,25 +44,6 @@ macro_rules! create_ids {
);
}
macro_rules! consume_token { ($i:tt) => (0) }
macro_rules! offsets {
($first:ident, $($other:ident),*) => (
#[allow(non_upper_case_globals)]
pub const $first: usize = 0;
offsets!(prev($first), $($other),*);
);
(prev($prev:ident), $first:ident, $($other:ident),*) => (
#[allow(non_upper_case_globals)]
pub const $first: usize = $prev + internal_sizes::$prev;
offsets!(prev($first), $($other),*);
);
(prev($prev:ident), $first:ident) => (
#[allow(non_upper_case_globals)]
pub const $first: usize = $prev + internal_sizes::$prev;
)
}
macro_rules! define_blocks {
(
$(