From bd2b284a2613c4ee9f2406fc3941f0fdfe3c1010 Mon Sep 17 00:00:00 2001 From: teoxoy <28601907+teoxoy@users.noreply.github.com> Date: Thu, 4 Jul 2024 12:12:57 +0200 Subject: [PATCH] remove unused `TempResource::Texture` --- wgpu-core/src/device/life.rs | 6 ------ wgpu-core/src/device/queue.rs | 1 - 2 files changed, 7 deletions(-) diff --git a/wgpu-core/src/device/life.rs b/wgpu-core/src/device/life.rs index 168d04c1e0..cbe55caf40 100644 --- a/wgpu-core/src/device/life.rs +++ b/wgpu-core/src/device/life.rs @@ -326,9 +326,6 @@ impl LifetimeTracker { .destroyed_buffers .insert(destroyed.tracker_index, destroyed); } - TempResource::Texture(raw) => { - last_resources.textures.insert(raw.tracker_index(), raw); - } TempResource::DestroyedTexture(destroyed) => { last_resources .destroyed_textures @@ -433,9 +430,6 @@ impl LifetimeTracker { .destroyed_buffers .insert(destroyed.tracker_index, destroyed); } - TempResource::Texture(raw) => { - resources.textures.insert(raw.tracker_index(), raw); - } TempResource::DestroyedTexture(destroyed) => { resources .destroyed_textures diff --git a/wgpu-core/src/device/queue.rs b/wgpu-core/src/device/queue.rs index 9949b5242f..59d46ac0ec 100644 --- a/wgpu-core/src/device/queue.rs +++ b/wgpu-core/src/device/queue.rs @@ -148,7 +148,6 @@ pub enum TempResource { StagingBuffer(Arc>), DestroyedBuffer(Arc>), DestroyedTexture(Arc>), - Texture(Arc>), } /// A series of raw [`CommandBuffer`]s that have been submitted to a