From 77b8d9dbf8e52f5051ac56b0de12ca7c10c51415 Mon Sep 17 00:00:00 2001 From: "J.C. Moyer" Date: Fri, 2 May 2014 01:13:45 -0400 Subject: [PATCH] Remove unnecessary 'mod flags' declarations --- src/sdl2/joystick.rs | 2 -- src/sdl2/keyboard.rs | 2 -- src/sdl2/lib.rs | 2 +- src/sdl2/mouse.rs | 2 -- src/sdl2/render.rs | 2 -- src/sdl2/sdl.rs | 2 -- src/sdl2/surface.rs | 2 -- src/sdl2/video.rs | 2 -- 8 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/sdl2/joystick.rs b/src/sdl2/joystick.rs index c27fc0fc..4c563328 100644 --- a/src/sdl2/joystick.rs +++ b/src/sdl2/joystick.rs @@ -1,5 +1,3 @@ -mod flags; - #[allow(non_camel_case_types)] pub mod ll { use libc::{c_int, c_char, c_void, int32_t, int16_t, int8_t, uint8_t}; diff --git a/src/sdl2/keyboard.rs b/src/sdl2/keyboard.rs index 4630c89e..e06cfebb 100644 --- a/src/sdl2/keyboard.rs +++ b/src/sdl2/keyboard.rs @@ -9,8 +9,6 @@ use rect::Rect; use scancode::ScanCode; use video::Window; -mod flags; - #[allow(non_camel_case_types)] pub mod ll { use libc::{c_int, c_char, c_uint, int32_t, uint8_t, uint16_t, diff --git a/src/sdl2/lib.rs b/src/sdl2/lib.rs index e3f5ff6b..642fef74 100644 --- a/src/sdl2/lib.rs +++ b/src/sdl2/lib.rs @@ -16,6 +16,7 @@ pub mod keycode; #[path = "generated/scancode.rs"] pub mod scancode; +pub mod flags; pub mod event; pub mod gesture; pub mod touch; @@ -33,4 +34,3 @@ pub mod rwops; pub mod sdl; pub mod audio; pub mod version; -pub mod flags; \ No newline at end of file diff --git a/src/sdl2/mouse.rs b/src/sdl2/mouse.rs index 1d983e82..16906d20 100644 --- a/src/sdl2/mouse.rs +++ b/src/sdl2/mouse.rs @@ -4,8 +4,6 @@ use get_error; use surface; use video; -mod flags; - #[allow(non_camel_case_types)] pub mod ll { use libc::{c_int, c_uint, c_void, uint8_t, uint32_t}; diff --git a/src/sdl2/render.rs b/src/sdl2/render.rs index 4c97a56c..dcf627ac 100644 --- a/src/sdl2/render.rs +++ b/src/sdl2/render.rs @@ -13,8 +13,6 @@ use std::num::FromPrimitive; use std::vec::Vec; use std::c_vec::CVec; -mod flags; - #[allow(non_camel_case_types)] pub mod ll { diff --git a/src/sdl2/sdl.rs b/src/sdl2/sdl.rs index 7ad8fde7..14999ea3 100644 --- a/src/sdl2/sdl.rs +++ b/src/sdl2/sdl.rs @@ -1,8 +1,6 @@ use std::cast; use std::str; -mod flags; - // Setup linking for all targets. #[cfg(target_os="macos")] mod mac { diff --git a/src/sdl2/surface.rs b/src/sdl2/surface.rs index eccfd64b..2b126348 100644 --- a/src/sdl2/surface.rs +++ b/src/sdl2/surface.rs @@ -6,8 +6,6 @@ use libc::c_int; use pixels; use rwops; -mod flags; - #[allow(non_camel_case_types)] pub mod ll { use pixels::ll::SDL_PixelFormat; diff --git a/src/sdl2/video.rs b/src/sdl2/video.rs index d6a6cf01..a71f19be 100644 --- a/src/sdl2/video.rs +++ b/src/sdl2/video.rs @@ -11,8 +11,6 @@ use std::num::FromPrimitive; use get_error; -mod flags; - #[allow(non_camel_case_types)] pub mod ll { use rect::Rect;