Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused EventBody<'a, T> #201

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading