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:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user