From 3df4c8a5028ed83cb590e9fe0f3220464208cf07 Mon Sep 17 00:00:00 2001 From: teoxoy <28601907+teoxoy@users.noreply.github.com> Date: Tue, 2 Jul 2024 19:07:58 +0200 Subject: [PATCH] remove unused `std::ops::Index` impl for `Storage` --- wgpu-core/src/storage.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/wgpu-core/src/storage.rs b/wgpu-core/src/storage.rs index 10895082c2..f2875b3542 100644 --- a/wgpu-core/src/storage.rs +++ b/wgpu-core/src/storage.rs @@ -1,4 +1,3 @@ -use std::ops; use std::sync::Arc; use wgt::Backend; @@ -55,15 +54,6 @@ where kind: &'static str, } -impl ops::Index> for Storage -where - T: StorageItem, -{ - type Output = Arc; - fn index(&self, id: Id) -> &Arc { - self.get(id).unwrap() - } -} impl Storage where T: StorageItem,