all: remove dead code
This commit is contained in:
parent
a20008d446
commit
8cee61122e
32 changed files with 9 additions and 145 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue