mirror of
https://codeberg.org/waydeer/layer-shika.git
synced 2025-11-17 23:14:23 +00:00
refactor: remove dead code
This commit is contained in:
parent
4ca0fefa8c
commit
a46ba14254
3 changed files with 0 additions and 7 deletions
|
|
@ -12,7 +12,6 @@ use std::rc::{Rc, Weak};
|
|||
|
||||
use super::main_window::RenderState;
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub struct PopupWindow {
|
||||
window: Window,
|
||||
renderer: FemtoVGRenderer,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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, ()));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue