1
0
Fork 0
forked from wry/wry

all: remove dead code

This commit is contained in:
Julian Orth 2024-05-02 19:37:19 +02:00
parent a20008d446
commit 8cee61122e
32 changed files with 9 additions and 145 deletions

View file

@ -101,7 +101,6 @@ pub trait DynDataOffer: 'static {
fn offer_id(&self) -> DataOfferId;
fn client_id(&self) -> ClientId;
fn send_offer(&self, mime_type: &str);
fn destroy(&self);
fn cancel(&self);
fn get_seat(&self) -> Rc<WlSeatGlobal>;

View file

@ -64,10 +64,6 @@ impl DynDataOffer for WlDataOffer {
WlDataOffer::send_offer(self, mime_type);
}
fn destroy(&self) {
destroy_data_offer::<ClipboardIpc>(self);
}
fn cancel(&self) {
cancel_offer::<ClipboardIpc>(self);
}

View file

@ -3,7 +3,7 @@ use {
client::ClientId,
ifs::{
ipc::{
cancel_offer, destroy_data_offer,
cancel_offer,
x_data_device::{XClipboardIpc, XIpcDevice, XPrimarySelectionIpc},
DataOffer, DataOfferId, DynDataOffer, IpcLocation, OfferData,
},
@ -50,13 +50,6 @@ impl DynDataOffer for XDataOffer {
})
}
fn destroy(&self) {
match self.location {
IpcLocation::Clipboard => destroy_data_offer::<XClipboardIpc>(self),
IpcLocation::PrimarySelection => destroy_data_offer::<XPrimarySelectionIpc>(self),
}
}
fn cancel(&self) {
match self.location {
IpcLocation::Clipboard => cancel_offer::<XClipboardIpc>(self),

View file

@ -50,13 +50,6 @@ impl DynDataOffer for ZwlrDataControlOfferV1 {
ZwlrDataControlOfferV1::send_offer(self, mime_type)
}
fn destroy(&self) {
match self.location {
IpcLocation::Clipboard => destroy_data_offer::<WlrClipboardIpc>(self),
IpcLocation::PrimarySelection => destroy_data_offer::<WlrPrimarySelectionIpc>(self),
}
}
fn cancel(&self) {
match self.location {
IpcLocation::Clipboard => cancel_offer::<WlrClipboardIpc>(self),

View file

@ -50,10 +50,6 @@ impl DynDataOffer for ZwpPrimarySelectionOfferV1 {
ZwpPrimarySelectionOfferV1::send_offer(self, mime_type);
}
fn destroy(&self) {
destroy_data_offer::<PrimarySelectionIpc>(self);
}
fn cancel(&self) {
cancel_offer::<PrimarySelectionIpc>(self);
}

View file

@ -241,10 +241,6 @@ impl Global for WlOutputGlobal {
fn version(&self) -> u32 {
OUTPUT_VERSION
}
fn break_loops(&self) {
self.bindings.borrow_mut().clear();
}
}
dedicated_add_global!(WlOutputGlobal, outputs);

View file

@ -1203,12 +1203,6 @@ impl Global for WlSeatGlobal {
fn version(&self) -> u32 {
9
}
fn break_loops(&self) {
self.bindings.borrow_mut().clear();
self.queue_link.take();
self.tree_changed_handler.take();
}
}
dedicated_add_global!(WlSeatGlobal, seats);

View file

@ -339,10 +339,6 @@ trait SurfaceExt {
}
}
fn update_subsurface_parent_extents(&self) {
// nothing
}
fn subsurface_parent(&self) -> Option<Rc<WlSurface>> {
None
}

View file

@ -85,10 +85,6 @@ impl Global for WpDrmLeaseDeviceV1Global {
1
}
fn break_loops(&self) {
self.bindings.clear();
}
fn required_caps(&self) -> ClientCaps {
CAP_DRM_LEASE
}