From 09f7c8acb97f2406ca5cd6ac3bebd39edf167718 Mon Sep 17 00:00:00 2001 From: colin Date: Tue, 26 Jul 2022 13:35:58 -0700 Subject: [PATCH] spirv_backend: support: remove unused helpers --- crates/spirv_backend/src/support.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/crates/spirv_backend/src/support.rs b/crates/spirv_backend/src/support.rs index edb073e..2583ce0 100644 --- a/crates/spirv_backend/src/support.rs +++ b/crates/spirv_backend/src/support.rs @@ -131,17 +131,6 @@ impl<'a, T> Array3<'a, T> { } } - pub fn index(self, idx: Vec3u) -> Optional { - checked_index(idx, self.dim) - } - - pub fn into_handle(self, idx: Vec3u) -> ArrayHandle<'a, T> { - let idx = checked_index(idx, self.dim).unwrap(); - unsafe { - self.data.get_handle(idx) - } - } - pub fn into_ref(self, idx: Vec3u) -> &'a T { let idx = checked_index(idx, self.dim).unwrap(); unsafe { @@ -187,10 +176,6 @@ impl<'a, T> Array3Mut<'a, T> { } } - // fn as_array3<'b>(&'b self) -> Array3<'b, T> { - // Array3::new(self.data, self.dim) - // } - pub fn index(&self, idx: Vec3u) -> Optional { if idx.x() < self.dim.x() && idx.y() < self.dim.y() && idx.z() < self.dim.z() { let flat_idx = index(idx, self.dim);