From 11ed7b2306b428f9be174939768c42dd56575339 Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Fri, 2 Mar 2018 23:58:45 -0800 Subject: [PATCH] examples: Clean up warnings and trim dead code --- examples/src/lib.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/examples/src/lib.rs b/examples/src/lib.rs index 8e48443..18f52f5 100644 --- a/examples/src/lib.rs +++ b/examples/src/lib.rs @@ -1,4 +1,3 @@ -#![allow(dead_code)] #[macro_use] extern crate ash; #[cfg(windows)] @@ -120,7 +119,7 @@ unsafe fn create_surface( ) -> Result { use winit::os::windows::WindowExt; let hwnd = window.get_hwnd() as *mut winapi::windef::HWND__; - let hinstance = unsafe { user32::GetWindow(hwnd, 0) as *const vk::c_void }; + let hinstance = user32::GetWindow(hwnd, 0) as *const vk::c_void; let win32_create_info = vk::Win32SurfaceCreateInfoKHR { s_type: vk::StructureType::Win32SurfaceCreateInfoKhr, p_next: ptr::null(), @@ -203,10 +202,6 @@ pub fn find_memorytype_index_f, pub instance: Instance, @@ -270,7 +265,6 @@ impl ExampleBase { let window = winit::WindowBuilder::new() .with_title("Ash - Example") .with_dimensions(window_width, window_height) - //.with_window_resize_callback(resize_callback) .build(&events_loop) .unwrap(); let entry = Entry::new().unwrap();