From 12a512c0307fe5911467306fef66eb27d9715f3e Mon Sep 17 00:00:00 2001 From: Zhixing Zhang Date: Wed, 16 Oct 2024 04:02:31 -0700 Subject: [PATCH] Simplify --- ash/src/util.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ash/src/util.rs b/ash/src/util.rs index 10d4c5ba..30f8b7ff 100644 --- a/ash/src/util.rs +++ b/ash/src/util.rs @@ -311,12 +311,6 @@ impl<'a> TaggedObject<'a> { pub unsafe fn from_raw_mut(obj: *mut vk::BaseOutStructure<'a>) -> &'a mut Self { &mut *(obj as *mut Self) } - pub fn base_structure(&self) -> &vk::BaseInStructure<'a> { - unsafe { &self.input } - } - pub fn base_structure_mut(&mut self) -> &mut vk::BaseOutStructure<'a> { - unsafe { &mut self.output } - } pub fn from_ref + ?Sized>(obj: &T) -> &Self { unsafe { &*(<*const T>::cast(obj)) } @@ -326,7 +320,7 @@ impl<'a> TaggedObject<'a> { unsafe { &mut *(<*mut T>::cast(obj)) } } pub fn tag(&self) -> vk::StructureType { - self.base_structure().s_type + self.as_base().s_type } pub fn downcast_ref>(&self) -> Option<&T> { unsafe {