refactor: remove dead code

This commit is contained in:
drendog 2025-11-13 08:30:17 +01:00
parent 4ca0fefa8c
commit a46ba14254
Signed by: dwenya
GPG key ID: 8DD77074645332D0
3 changed files with 0 additions and 7 deletions

View file

@ -12,7 +12,6 @@ use std::rc::{Rc, Weak};
use super::main_window::RenderState;
#[allow(dead_code)]
pub struct PopupWindow {
window: Window,
renderer: FemtoVGRenderer,

View file

@ -21,7 +21,6 @@ impl ManagedWlPointer {
}
}
#[allow(dead_code)]
pub const fn inner(&self) -> &Rc<WlPointer> {
&self.pointer
}
@ -136,7 +135,6 @@ impl ManagedWpFractionalScaleV1 {
}
}
#[allow(dead_code)]
pub const fn inner(&self) -> &Rc<WpFractionalScaleV1> {
&self.fractional_scale
}
@ -174,7 +172,6 @@ impl ManagedWpViewport {
}
}
#[allow(dead_code)]
pub const fn inner(&self) -> &Rc<WpViewport> {
&self.viewport
}

View file

@ -23,7 +23,6 @@ use wayland_protocols::xdg::shell::client::{
use super::surface_state::WindowState;
#[allow(dead_code)]
pub struct PopupSurfaceParams<'a> {
pub compositor: &'a WlCompositor,
pub xdg_wm_base: &'a XdgWmBase,
@ -36,7 +35,6 @@ pub struct PopupSurfaceParams<'a> {
pub scale_factor: f32,
}
#[allow(dead_code)]
pub struct PopupSurface {
pub surface: Rc<WlSurface>,
pub xdg_surface: Rc<XdgSurface>,
@ -45,7 +43,6 @@ pub struct PopupSurface {
pub viewport: Option<Rc<WpViewport>>,
}
#[allow(dead_code)]
impl PopupSurface {
pub fn create(params: &PopupSurfaceParams<'_>) -> Self {
let surface = Rc::new(params.compositor.create_surface(params.queue_handle, ()));