From 2b35a6c9d1a1e2f748b887947b16ce67d05207c2 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Sun, 4 Oct 2015 18:39:17 +0200 Subject: Fix the examples --- examples/multiwindow.rs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'examples/multiwindow.rs') diff --git a/examples/multiwindow.rs b/examples/multiwindow.rs index acb2e99..f6154ce 100644 --- a/examples/multiwindow.rs +++ b/examples/multiwindow.rs @@ -11,10 +11,6 @@ mod support; #[cfg(target_os = "android")] android_start!(main); -#[cfg(not(feature = "window"))] -fn main() { println!("This example requires glutin to be compiled with the `window` feature"); } - -#[cfg(feature = "window")] fn main() { let window1 = glutin::WindowBuilder::new().build().unwrap(); let window2 = glutin::WindowBuilder::new().build().unwrap(); @@ -37,7 +33,6 @@ fn main() { let _ = t3.join(); } -#[cfg(feature = "window")] fn run(window: glutin::Window, color: (f32, f32, f32, f32)) { let _ = unsafe { window.make_current() }; -- cgit v1.2.3