Skip to content

Commit

Permalink
seat: remove unused IpcVtable::LOCATION
Browse files Browse the repository at this point in the history
  • Loading branch information
mahkoh committed Jul 25, 2024
1 parent 6d769a1 commit 0de7a06
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 11 deletions.
2 changes: 0 additions & 2 deletions src/ifs/ipc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand Down
6 changes: 2 additions & 4 deletions src/ifs/ipc/wl_data_device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/ifs/ipc/x_data_device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/ifs/ipc/zwlr_data_control_device_v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 1 addition & 3 deletions src/ifs/ipc/zwp_primary_selection_device_v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
},
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 0de7a06

Please sign in to comment.