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; use super::main_window::RenderState;
#[allow(dead_code)]
pub struct PopupWindow { pub struct PopupWindow {
window: Window, window: Window,
renderer: FemtoVGRenderer, renderer: FemtoVGRenderer,

View file

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

View file

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