1
0
Fork 0
forked from wry/wry

Merge pull request #236 from mahkoh/jorth/location

seat: remove unused IpcVtable::LOCATION
This commit is contained in:
mahkoh 2024-07-25 19:39:47 +02:00 committed by GitHub
commit 086f3eb4f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 3 additions and 11 deletions

View file

@ -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>;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;