auto merge of #4943 : thiagopnts/servo/remove-warnings, r=gw

Remove warning from unused import
This commit is contained in:
bors-servo 2015-02-18 14:00:58 -07:00
commit 25678f9c2f

View file

@ -27,7 +27,7 @@ use compositing::windowing::{MouseWindowEvent, WindowNavigateMsg};
#[cfg(feature = "window")] #[cfg(feature = "window")]
use geom::point::{Point2D, TypedPoint2D}; use geom::point::{Point2D, TypedPoint2D};
#[cfg(feature = "window")] #[cfg(feature = "window")]
use glutin::{ElementState, Event, MouseButton, MouseCursor, VirtualKeyCode}; use glutin::{ElementState, Event, MouseButton, VirtualKeyCode};
#[cfg(feature = "window")] #[cfg(feature = "window")]
use msg::constellation_msg::{KeyState, CONTROL, SHIFT, ALT}; use msg::constellation_msg::{KeyState, CONTROL, SHIFT, ALT};
#[cfg(feature = "window")] #[cfg(feature = "window")]
@ -511,6 +511,8 @@ impl WindowMethods for Window {
#[cfg(target_os="linux")] #[cfg(target_os="linux")]
fn set_cursor(&self, c: Cursor) { fn set_cursor(&self, c: Cursor) {
use glutin::MouseCursor;
let glutin_cursor = match c { let glutin_cursor = match c {
Cursor::NoCursor => MouseCursor::NoneCursor, Cursor::NoCursor => MouseCursor::NoneCursor,
Cursor::DefaultCursor => MouseCursor::Default, Cursor::DefaultCursor => MouseCursor::Default,