From 00eb1ce19c81f582111140130df3c2b8a01a1a60 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 19 Oct 2023 20:22:48 -0700 Subject: [PATCH] drop dead code --- src/framework.rs | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/framework.rs b/src/framework.rs index cdd8906..2a0d524 100644 --- a/src/framework.rs +++ b/src/framework.rs @@ -1,22 +1,8 @@ use winit::{ - event::{self, WindowEvent, DeviceEvent}, + event::{self, WindowEvent}, event_loop::{ControlFlow, EventLoop}, }; -#[allow(dead_code)] -pub fn cast_slice(data: &[T]) -> &[u8] { - use std::{mem::size_of, slice::from_raw_parts}; - - unsafe { from_raw_parts(data.as_ptr() as *const u8, data.len() * size_of::()) } -} - -#[allow(dead_code)] -pub enum ShaderStage { - Vertex, - Fragment, - Compute, -} - pub trait Example: 'static + Sized { fn optional_features() -> wgpu::Features { wgpu::Features::empty()