Inline redundant function

This commit is contained in:
Hanno Braun 2025-03-25 20:57:01 +01:00
parent a3d28e4e3b
commit f789c09ef7
2 changed files with 1 additions and 5 deletions

View File

@ -42,7 +42,7 @@ impl Renderer {
backends: wgpu::Backends::all(),
..Default::default()
});
let surface = instance.create_surface(screen.winit_window())?;
let surface = instance.create_surface(screen.inner.clone())?;
#[cfg(not(target_arch = "wasm32"))]
for adapter in instance.enumerate_adapters(wgpu::Backends::all()) {

View File

@ -14,10 +14,6 @@ impl Window {
height: size.height,
}
}
pub fn winit_window(&self) -> Arc<winit::window::Window> {
self.inner.clone()
}
}
/// Cursor position in normalized coordinates (-1 to +1)