From 0903ba6d47e952ad16c76f2fde0403b959a99a6d Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Thu, 19 Sep 2024 15:02:56 -0400 Subject: [PATCH] refactor(core): delete unused `CreateDeviceError` --- wgpu-core/src/device/resource.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/wgpu-core/src/device/resource.rs b/wgpu-core/src/device/resource.rs index 9f0cbf33f..18fdf5708 100644 --- a/wgpu-core/src/device/resource.rs +++ b/wgpu-core/src/device/resource.rs @@ -38,7 +38,6 @@ use arrayvec::ArrayVec; use once_cell::sync::OnceCell; use smallvec::SmallVec; -use thiserror::Error; use wgt::{ math::align_to, DeviceLostReason, TextureFormat, TextureSampleType, TextureViewDimension, }; @@ -187,14 +186,6 @@ impl Drop for Device { } } -#[derive(Clone, Debug, Error)] -pub enum CreateDeviceError { - #[error("Not enough memory left to create device")] - OutOfMemory, - #[error("Failed to create internal buffer for initializing textures")] - FailedToCreateZeroBuffer(#[from] DeviceError), -} - impl Device { pub(crate) fn raw(&self) -> &dyn hal::DynDevice { self.raw.as_ref()