From 7ae7e8f17617c3373ed457a5abdd05ec50ebeef3 Mon Sep 17 00:00:00 2001 From: galister <22305755+galister@users.noreply.github.com> Date: Thu, 1 Feb 2024 00:22:47 +0100 Subject: [PATCH] cleanup --- src/graphics.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/graphics.rs b/src/graphics.rs index 9cc740e..08ad445 100644 --- a/src/graphics.rs +++ b/src/graphics.rs @@ -122,9 +122,7 @@ impl WlxGraphics { pub fn new_openxr(xr_instance: openxr::Instance, system: openxr::SystemId) -> Arc { use std::ffi::{self, c_char, CString}; - use ash::vk::{ - PhysicalDeviceDynamicRenderingFeatures, PhysicalDeviceDynamicRenderingFeaturesBuilder, - }; + use ash::vk::PhysicalDeviceDynamicRenderingFeatures; use vulkano::Handle; let vk_target_version = vk::make_api_version(0, 1, 3, 0); // Vulkan 1.1 guarantees multiview support @@ -686,7 +684,6 @@ impl WlxGraphics { )) } - #[allow(dead_code)] pub fn create_pipeline_dynamic( self: &Arc, vert: Arc, @@ -804,7 +801,6 @@ impl WlxCommandBuffer { .unwrap(); } - #[allow(dead_code)] pub fn begin_rendering(&mut self, render_target: Arc) { self.command_buffer .begin_rendering(RenderingInfo { @@ -900,7 +896,6 @@ impl WlxCommandBuffer { .unwrap(); } - #[allow(dead_code)] pub fn end_rendering(&mut self) { self.command_buffer.end_rendering().unwrap(); } @@ -921,7 +916,6 @@ impl WlxCommandBuffer { } } -#[allow(dead_code)] pub struct WlxPipelineDynamic {} pub struct WlxPipelineLegacy { @@ -938,7 +932,6 @@ pub struct WlxPipeline { } impl WlxPipeline { - #[allow(dead_code)] fn new( graphics: Arc, vert: Arc, @@ -1001,7 +994,6 @@ impl WlxPipeline { data: WlxPipelineDynamic {}, } } - #[allow(dead_code)] pub fn create_pass( self: &Arc, dimensions: [f32; 2],