diff --git a/examples/cursor.rs b/examples/cursor.rs index 1fbe1711..596b2736 100644 --- a/examples/cursor.rs +++ b/examples/cursor.rs @@ -1,14 +1,7 @@ -#[cfg(target_os = "android")] -#[macro_use] -extern crate android_glue; - extern crate winit; use winit::{Event, ElementState, MouseCursor}; -#[cfg(target_os = "android")] -android_start!(main); - fn main() { let window = winit::WindowBuilder::new().build().unwrap(); window.set_title("A fantastic window!"); diff --git a/examples/fullscreen.rs b/examples/fullscreen.rs index 5ed2ecbc..2d5d6f6b 100644 --- a/examples/fullscreen.rs +++ b/examples/fullscreen.rs @@ -1,14 +1,7 @@ -#[cfg(target_os = "android")] -#[macro_use] -extern crate android_glue; - extern crate winit; use std::io::{self, Write}; -#[cfg(target_os = "android")] -android_start!(main); - fn main() { // enumerating monitors let monitor = { diff --git a/examples/grabbing.rs b/examples/grabbing.rs index 6a1c47cf..f2d1a800 100644 --- a/examples/grabbing.rs +++ b/examples/grabbing.rs @@ -1,14 +1,7 @@ -#[cfg(target_os = "android")] -#[macro_use] -extern crate android_glue; - extern crate winit; use winit::{Event, ElementState}; -#[cfg(target_os = "android")] -android_start!(main); - fn main() { let window = winit::WindowBuilder::new().build().unwrap(); window.set_title("winit - Cursor grabbing test"); diff --git a/examples/min_max_size.rs b/examples/min_max_size.rs index 7518bf0d..7b626740 100644 --- a/examples/min_max_size.rs +++ b/examples/min_max_size.rs @@ -1,12 +1,5 @@ -#[cfg(target_os = "android")] -#[macro_use] -extern crate android_glue; - extern crate winit; -#[cfg(target_os = "android")] -android_start!(main); - fn main() { let window = winit::WindowBuilder::new() .with_min_dimensions(400, 200) diff --git a/examples/multiwindow.rs b/examples/multiwindow.rs index cdb5c883..703b6a37 100644 --- a/examples/multiwindow.rs +++ b/examples/multiwindow.rs @@ -1,14 +1,7 @@ -#[cfg(target_os = "android")] -#[macro_use] -extern crate android_glue; - extern crate winit; use std::thread; -#[cfg(target_os = "android")] -android_start!(main); - fn main() { let window1 = winit::WindowBuilder::new().build().unwrap(); let window2 = winit::WindowBuilder::new().build().unwrap(); diff --git a/examples/transparent.rs b/examples/transparent.rs index 9bbe43f7..078ca1f6 100644 --- a/examples/transparent.rs +++ b/examples/transparent.rs @@ -1,12 +1,5 @@ -#[cfg(target_os = "android")] -#[macro_use] -extern crate android_glue; - extern crate winit; -#[cfg(target_os = "android")] -android_start!(main); - fn resize_callback(width: u32, height: u32) { println!("Window resized to {}x{}", width, height); } diff --git a/examples/window.rs b/examples/window.rs index 633057ee..fc908233 100644 --- a/examples/window.rs +++ b/examples/window.rs @@ -1,12 +1,5 @@ -#[cfg(target_os = "android")] -#[macro_use] -extern crate android_glue; - extern crate winit; -#[cfg(target_os = "android")] -android_start!(main); - fn resize_callback(width: u32, height: u32) { println!("Window resized to {}x{}", width, height); }