ifs: remove dead interface markers
This commit is contained in:
parent
9135834cc7
commit
864f506b1e
2 changed files with 0 additions and 36 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue