1
0
Fork 0
forked from wry/wry

ifs: remove dead interface markers

This commit is contained in:
kossLAN 2026-05-29 18:28:38 -04:00
parent 9135834cc7
commit 864f506b1e
No known key found for this signature in database
2 changed files with 0 additions and 36 deletions

View file

@ -41,9 +41,7 @@ use {
thiserror::Error,
};
pub const CREATE_EI_SESSION_SINCE: Version = Version(5);
pub const SCREENSHOT_SPLITUP_SINCE: Version = Version(6);
pub const GET_TOPLEVEL_SINCE: Version = Version(12);
pub struct JayCompositorGlobal {
name: GlobalName,

View file

@ -123,40 +123,6 @@ macro_rules! id {
};
}
macro_rules! shared_ids {
($id:ident) => {
shared_ids!($id, u32);
};
($id:ident, $ty:ty) => {
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)]
pub struct $id($ty);
impl $id {
#[expect(dead_code)]
pub fn raw(&self) -> $ty {
self.0
}
#[expect(dead_code)]
pub fn from_raw(id: $ty) -> Self {
Self(id)
}
}
impl From<$ty> for $id {
fn from(id: $ty) -> Self {
Self(id)
}
}
impl std::fmt::Display for $id {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
std::fmt::Display::fmt(&self.0, f)
}
}
};
}
macro_rules! linear_ids {
($(#[$attr1:meta])* $ids:ident, $id:ident $(,)?) => {
linear_ids!($(#[$attr1])* $ids, $id, u32);