rusticl/icd: remove CLObject

I have no idea why I've added it in the first place, but it's causing dead
code warnings to appear with newer rustc versions, so remove it.

Fixes: 7f77f91929 ("rusticl/icd: split Arc part out of CLObject into new trait")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29120>
This commit is contained in:
Karol Herbst
2024-05-09 14:34:51 +02:00
committed by Marge Bot
parent 9d2711fcb8
commit 146ac5169d
-9
View File
@@ -287,14 +287,6 @@ pub trait BaseCLObject<'a, const ERR: i32, CL: ReferenceCountedAPIPointer<Self,
}
}
pub trait CLObject<'a, const ERR: i32, CL: ReferenceCountedAPIPointer<Self, ERR> + 'a>:
Sized + BaseCLObject<'a, ERR, CL>
{
fn as_cl(&self) -> CL {
CL::from_ptr(self)
}
}
pub trait ArcedCLObject<'a, const ERR: i32, CL: ReferenceCountedAPIPointer<Self, ERR> + 'a>:
Sized + BaseCLObject<'a, ERR, CL>
{
@@ -424,7 +416,6 @@ macro_rules! impl_cl_type_trait_base {
($cl: ident, $t: ident, [$($types: ident),+], $err: ident, $($field:ident).+) => {
$crate::impl_cl_type_trait_base!(@BASE $cl, $t, [$($types),+], $err, $($field).+);
impl $crate::api::icd::CLObject<'_, $err, $cl> for $t {}
};
($cl: ident, $t: ident, [$($types: ident),+], $err: ident) => {