Merge pull request #236 from mahkoh/jorth/location
seat: remove unused IpcVtable::LOCATION
This commit is contained in:
commit
086f3eb4f8
5 changed files with 3 additions and 11 deletions
|
|
@ -146,8 +146,6 @@ pub trait WlrIpcVtable: IpcVtable<Device = ZwlrDataControlDeviceV1> {
|
|||
}
|
||||
|
||||
pub trait IpcVtable: Sized {
|
||||
const LOCATION: IpcLocation;
|
||||
|
||||
type Device;
|
||||
type Source: DataSource;
|
||||
type Offer: DataOffer<Device = Self::Device>;
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ use {
|
|||
ifs::{
|
||||
ipc::{
|
||||
break_device_loops, destroy_data_device, wl_data_offer::WlDataOffer,
|
||||
wl_data_source::WlDataSource, DeviceData, IpcLocation, IpcVtable,
|
||||
IterableIpcVtable, OfferData, Role,
|
||||
wl_data_source::WlDataSource, DeviceData, IpcVtable, IterableIpcVtable, OfferData,
|
||||
Role,
|
||||
},
|
||||
wl_seat::{WlSeatError, WlSeatGlobal},
|
||||
wl_surface::WlSurfaceError,
|
||||
|
|
@ -162,8 +162,6 @@ impl IterableIpcVtable for ClipboardIpc {
|
|||
}
|
||||
|
||||
impl IpcVtable for ClipboardIpc {
|
||||
const LOCATION: IpcLocation = IpcLocation::Clipboard;
|
||||
|
||||
type Device = WlDataDevice;
|
||||
type Source = WlDataSource;
|
||||
type Offer = WlDataOffer;
|
||||
|
|
|
|||
|
|
@ -65,7 +65,6 @@ impl XIpc for XPrimarySelectionIpc {
|
|||
}
|
||||
|
||||
impl<T: XIpc> IpcVtable for T {
|
||||
const LOCATION: IpcLocation = T::LOCATION;
|
||||
type Device = XIpcDevice;
|
||||
type Source = XDataSource;
|
||||
type Offer = XDataOffer;
|
||||
|
|
|
|||
|
|
@ -217,7 +217,6 @@ impl<T: WlrIpc> WlrIpcVtable for WlrIpcImpl<T> {
|
|||
}
|
||||
|
||||
impl<T: WlrIpc> IpcVtable for WlrIpcImpl<T> {
|
||||
const LOCATION: IpcLocation = T::LOCATION;
|
||||
type Device = ZwlrDataControlDeviceV1;
|
||||
type Source = ZwlrDataControlSourceV1;
|
||||
type Offer = ZwlrDataControlOfferV1;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ use {
|
|||
break_device_loops, destroy_data_device,
|
||||
zwp_primary_selection_offer_v1::ZwpPrimarySelectionOfferV1,
|
||||
zwp_primary_selection_source_v1::ZwpPrimarySelectionSourceV1, DeviceData,
|
||||
IpcLocation, IpcVtable, IterableIpcVtable, OfferData, Role,
|
||||
IpcVtable, IterableIpcVtable, OfferData, Role,
|
||||
},
|
||||
wl_seat::{WlSeatError, WlSeatGlobal},
|
||||
},
|
||||
|
|
@ -109,8 +109,6 @@ impl IterableIpcVtable for PrimarySelectionIpc {
|
|||
}
|
||||
|
||||
impl IpcVtable for PrimarySelectionIpc {
|
||||
const LOCATION: IpcLocation = IpcLocation::PrimarySelection;
|
||||
|
||||
type Device = ZwpPrimarySelectionDeviceV1;
|
||||
type Source = ZwpPrimarySelectionSourceV1;
|
||||
type Offer = ZwpPrimarySelectionOfferV1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue