From 146ac5169d2583ee2f800b8d59291648edf799d1 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Thu, 9 May 2024 14:34:51 +0200 Subject: [PATCH] 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: 7f77f91929c ("rusticl/icd: split Arc part out of CLObject into new trait") Part-of: --- src/gallium/frontends/rusticl/api/icd.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/gallium/frontends/rusticl/api/icd.rs b/src/gallium/frontends/rusticl/api/icd.rs index 936f9fcbdd9..7af9b53266c 100644 --- a/src/gallium/frontends/rusticl/api/icd.rs +++ b/src/gallium/frontends/rusticl/api/icd.rs @@ -287,14 +287,6 @@ pub trait BaseCLObject<'a, const ERR: i32, CL: ReferenceCountedAPIPointer + 'a>: - Sized + BaseCLObject<'a, ERR, CL> -{ - fn as_cl(&self) -> CL { - CL::from_ptr(self) - } -} - pub trait ArcedCLObject<'a, const ERR: i32, CL: ReferenceCountedAPIPointer + '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) => { -- 2.11.4.GIT