Skip to content

Commit

Permalink
Merge pull request #201 from odilia-app/remove-eventbody
Browse files Browse the repository at this point in the history
Remove unused `EventBody<'a, T>`
  • Loading branch information
TTWNO committed Jun 27, 2024
2 parents 626521d + ecbd191 commit d8e2bdb
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions atspi-common/src/events/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,33 +42,6 @@ use crate::{
AtspiError, ObjectRef,
};

/// A borrowed body for events.
#[derive(Debug, Serialize, Deserialize)]
pub struct EventBody<'a, T> {
/// A generic "kind" type, defined by AT-SPI:
/// usually a `&'a str`, but can be another type like [`crate::state::State`].
#[serde(rename = "type")]
pub kind: T,
/// Generic first detail defined by AT-SPI.
pub detail1: i32,
/// Generic second detail defined by AT-SPI.
pub detail2: i32,
/// Generic `any_data` field defined in AT-SPI.
/// Can contain any type.
#[serde(borrow)]
pub any_data: Value<'a>,
/// Map of string to an any type.
/// This is not used for anything, but it is defined by AT-SPI.
#[serde(borrow)]
pub properties: HashMap<UniqueName<'a>, Value<'a>>,
}

impl<T> Type for EventBody<'_, T> {
fn signature() -> Signature<'static> {
<(&str, i32, i32, Value, HashMap<&str, Value>)>::signature()
}
}

/// Qt event body, which is not the same as other GUI frameworks.
/// Signature: "siiv(so)"
#[derive(Debug, Serialize, Deserialize, Type)]
Expand Down

0 comments on commit d8e2bdb

Please sign in to comment.