From ae7802c8c2199ec36d1e0560a0edb82573cf782e Mon Sep 17 00:00:00 2001 From: tomaka Date: Wed, 13 Sep 2017 11:15:16 +0200 Subject: [PATCH] Fix warnings for win32 (#283) --- Cargo.toml | 1 - src/lib.rs | 2 -- src/platform/windows/events_loop.rs | 1 - 3 files changed, 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 836dbda83e..1e03fb5c00 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,7 +29,6 @@ core-graphics = "0.8" [target.'cfg(target_os = "windows")'.dependencies] winapi = "0.2" shell32-sys = "0.1" -gdi32-sys = "0.1" user32-sys = "~0.1.2" kernel32-sys = "0.2" dwmapi-sys = "0.1" diff --git a/src/lib.rs b/src/lib.rs index b8b4e3f257..de413803cc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -92,8 +92,6 @@ extern crate kernel32; #[cfg(target_os = "windows")] extern crate shell32; #[cfg(target_os = "windows")] -extern crate gdi32; -#[cfg(target_os = "windows")] extern crate user32; #[cfg(target_os = "windows")] extern crate dwmapi; diff --git a/src/platform/windows/events_loop.rs b/src/platform/windows/events_loop.rs index 40f0bb7fb4..ddb2c5fa70 100644 --- a/src/platform/windows/events_loop.rs +++ b/src/platform/windows/events_loop.rs @@ -44,7 +44,6 @@ use KeyboardInput; use WindowAttributes; use WindowEvent; use WindowId as SuperWindowId; -use AxisId; /// Contains information about states and the window that the callback is going to use. #[derive(Clone)]