Remove unused imports

This commit is contained in:
Jonas Platte 2019-02-22 21:46:26 +01:00 committed by Victor Berger
parent 3d8f22c805
commit c238770a1b
17 changed files with 22 additions and 25 deletions

View File

@ -2,7 +2,7 @@ use std::{cell::RefCell, rc::Rc, sync::Mutex};
use wayland_server::{ use wayland_server::{
protocol::{wl_compositor, wl_region, wl_subcompositor, wl_subsurface, wl_surface}, protocol::{wl_compositor, wl_region, wl_subcompositor, wl_subsurface, wl_surface},
NewResource, Resource, NewResource,
}; };
use super::{ use super::{

View File

@ -95,7 +95,7 @@ use wayland_server::{
protocol::{ protocol::{
wl_buffer, wl_callback, wl_compositor, wl_output, wl_region, wl_subcompositor, wl_surface::WlSurface, wl_buffer, wl_callback, wl_compositor, wl_output, wl_region, wl_subcompositor, wl_surface::WlSurface,
}, },
Display, Global, NewResource, Resource, Display, Global, NewResource,
}; };
/// Description of which part of a surface /// Description of which part of a surface

View File

@ -1,6 +1,6 @@
use super::{roles::*, SubsurfaceRole, SurfaceAttributes}; use super::{roles::*, SubsurfaceRole, SurfaceAttributes};
use std::sync::Mutex; use std::sync::Mutex;
use wayland_server::{protocol::wl_surface::WlSurface, Resource}; use wayland_server::protocol::wl_surface::WlSurface;
/// Node of a subsurface tree, holding some user specified data type U /// Node of a subsurface tree, holding some user specified data type U
/// at each node /// at each node

View File

@ -5,7 +5,7 @@ use wayland_server::{
wl_data_device_manager::DndAction, wl_data_device_manager::DndAction,
wl_data_source::{Request, WlDataSource}, wl_data_source::{Request, WlDataSource},
}, },
NewResource, Resource, NewResource,
}; };
/// The metadata describing a data source /// The metadata describing a data source

View File

@ -2,11 +2,8 @@ use std::cell::RefCell;
use std::rc::Rc; use std::rc::Rc;
use wayland_server::{ use wayland_server::{
protocol::{ protocol::{wl_data_device_manager::DndAction, wl_data_offer, wl_data_source, wl_pointer, wl_surface},
wl_data_device, wl_data_device_manager::DndAction, wl_data_offer, wl_data_source, wl_pointer, NewResource,
wl_surface,
},
NewResource, Resource,
}; };
use crate::wayland::{ use crate::wayland::{

View File

@ -66,7 +66,7 @@ use wayland_server::{
wl_data_device_manager::{self, DndAction}, wl_data_device_manager::{self, DndAction},
wl_data_offer, wl_data_source, wl_surface, wl_data_offer, wl_data_source, wl_surface,
}, },
Client, Display, Global, NewResource, Resource, Client, Display, Global, NewResource,
}; };
use crate::wayland::{ use crate::wayland::{

View File

@ -3,8 +3,8 @@ use std::os::unix::io::RawFd;
use std::rc::Rc; use std::rc::Rc;
use wayland_server::{ use wayland_server::{
protocol::{wl_data_device, wl_data_device_manager::DndAction, wl_data_offer, wl_pointer, wl_surface}, protocol::{wl_data_device_manager::DndAction, wl_data_offer, wl_pointer, wl_surface},
NewResource, Resource, NewResource,
}; };
use crate::wayland::seat::{AxisFrame, PointerGrab, PointerInnerHandle, Seat}; use crate::wayland::seat::{AxisFrame, PointerGrab, PointerInnerHandle, Seat};

View File

@ -55,8 +55,8 @@ use std::sync::{Arc, Mutex};
use wayland_server::protocol::wl_output::{Subpixel, Transform}; use wayland_server::protocol::wl_output::{Subpixel, Transform};
use wayland_server::{ use wayland_server::{
protocol::wl_output::{Event, Mode as WMode, Request, WlOutput}, protocol::wl_output::{Mode as WMode, WlOutput},
Display, Global, NewResource, Resource, Display, Global, NewResource,
}; };
/// An output mode /// An output mode

View File

@ -9,10 +9,10 @@ use std::{
use tempfile::tempfile; use tempfile::tempfile;
use wayland_server::{ use wayland_server::{
protocol::{ protocol::{
wl_keyboard::{Event, KeyState as WlKeyState, KeymapFormat, Request, WlKeyboard}, wl_keyboard::{KeyState as WlKeyState, KeymapFormat, Request, WlKeyboard},
wl_surface::WlSurface, wl_surface::WlSurface,
}, },
Client, NewResource, Resource, Client, NewResource,
}; };
use xkbcommon::xkb; use xkbcommon::xkb;
pub use xkbcommon::xkb::{keysyms, Keysym}; pub use xkbcommon::xkb::{keysyms, Keysym};

View File

@ -61,7 +61,7 @@ use wayland_commons::utils::UserDataMap;
use wayland_server::{ use wayland_server::{
protocol::{wl_seat, wl_surface}, protocol::{wl_seat, wl_surface},
Display, Global, NewResource, Resource, Display, Global, NewResource,
}; };
struct Inner { struct Inner {

View File

@ -3,10 +3,10 @@ use std::rc::Rc;
use wayland_server::{ use wayland_server::{
protocol::{ protocol::{
wl_pointer::{self, Axis, AxisSource, ButtonState, Event, Request, WlPointer}, wl_pointer::{self, Axis, AxisSource, ButtonState, Request, WlPointer},
wl_surface::WlSurface, wl_surface::WlSurface,
}, },
NewResource, Resource, NewResource,
}; };
use crate::wayland::compositor::{roles::Role, CompositorToken}; use crate::wayland::compositor::{roles::Role, CompositorToken};

View File

@ -80,7 +80,7 @@ use crate::wayland::compositor::{roles::Role, CompositorToken};
use wayland_server::{ use wayland_server::{
protocol::{wl_output, wl_seat, wl_shell, wl_shell_surface, wl_surface}, protocol::{wl_output, wl_seat, wl_shell, wl_shell_surface, wl_surface},
Display, Global, Resource, Display, Global,
}; };
mod wl_handlers; mod wl_handlers;

View File

@ -6,7 +6,7 @@ use std::{
use wayland_server::{ use wayland_server::{
protocol::{wl_shell, wl_shell_surface, wl_surface}, protocol::{wl_shell, wl_shell_surface, wl_surface},
NewResource, Resource, NewResource,
}; };
use crate::wayland::compositor::{roles::Role, CompositorToken}; use crate::wayland::compositor::{roles::Role, CompositorToken};

View File

@ -103,7 +103,7 @@ use wayland_protocols::{
}; };
use wayland_server::{ use wayland_server::{
protocol::{wl_output, wl_seat, wl_surface}, protocol::{wl_output, wl_seat, wl_surface},
Display, Global, Resource, Display, Global,
}; };
// handlers for the xdg_shell protocol // handlers for the xdg_shell protocol

View File

@ -4,7 +4,7 @@ use crate::wayland::compositor::{roles::*, CompositorToken};
use wayland_protocols::xdg_shell::server::{ use wayland_protocols::xdg_shell::server::{
xdg_popup, xdg_positioner, xdg_surface, xdg_toplevel, xdg_wm_base, xdg_popup, xdg_positioner, xdg_surface, xdg_toplevel, xdg_wm_base,
}; };
use wayland_server::{protocol::wl_surface, NewResource, Resource}; use wayland_server::{protocol::wl_surface, NewResource};
use crate::utils::Rectangle; use crate::utils::Rectangle;

View File

@ -7,7 +7,7 @@ use wayland_protocols::{
}, },
xdg_shell::server::{xdg_positioner, xdg_toplevel}, xdg_shell::server::{xdg_positioner, xdg_toplevel},
}; };
use wayland_server::{protocol::wl_surface, NewResource, Resource}; use wayland_server::{protocol::wl_surface, NewResource};
use crate::utils::Rectangle; use crate::utils::Rectangle;

View File

@ -81,7 +81,7 @@ use self::pool::{Pool, ResizeError};
use std::{rc::Rc, sync::Arc}; use std::{rc::Rc, sync::Arc};
use wayland_server::{ use wayland_server::{
protocol::{wl_buffer, wl_shm, wl_shm_pool}, protocol::{wl_buffer, wl_shm, wl_shm_pool},
Display, Global, NewResource, Resource, Display, Global, NewResource,
}; };
mod pool; mod pool;