Skip to content

Commit

Permalink
fix(wayland): warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
technobaboo committed Mar 10, 2024
1 parent 34aab26 commit 302a647
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 2 additions & 0 deletions src/nodes/items/panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ impl<B: Backend + ?Sized> PanelItem<B> {
}

// Remote signals
#[allow(unused)]
impl<B: Backend + ?Sized> PanelItem<B> {
pub fn toplevel_parent_changed(&self, parent: &str) {
let Some(node) = self.node.upgrade() else {
Expand Down Expand Up @@ -381,6 +382,7 @@ macro_rules! flex_deserialize {
}
};
}
#[allow(unused)]
impl<B: Backend + ?Sized> PanelItem<B> {
fn apply_surface_material_flex(
node: Arc<Node>,
Expand Down
8 changes: 0 additions & 8 deletions src/wayland/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,6 @@ pub struct ClientState {
pub display: Weak<DisplayWrapper>,
pub seat: Arc<SeatWrapper>,
}
impl ClientState {
pub fn flush(&self) {
let Some(display) = self.display.upgrade() else {
return;
};
let _ = display.flush_clients(self.id.get().cloned());
}
}
impl ClientData for ClientState {
fn initialized(&self, client_id: ClientId) {
info!("Wayland client {:?} connected", client_id);
Expand Down

0 comments on commit 302a647

Please sign in to comment.