From 754e8da620ec9a9c07c3222fceee5fb0ecb7b9db Mon Sep 17 00:00:00 2001 From: chyyran Date: Tue, 6 Feb 2024 02:01:05 -0500 Subject: [PATCH] runtime: remove unused AsDerefable trait --- librashader-runtime/src/lib.rs | 2 -- librashader-runtime/src/uniforms.rs | 5 ----- 2 files changed, 7 deletions(-) diff --git a/librashader-runtime/src/lib.rs b/librashader-runtime/src/lib.rs index ae3eeae..4702df3 100644 --- a/librashader-runtime/src/lib.rs +++ b/librashader-runtime/src/lib.rs @@ -1,5 +1,3 @@ -#![allow(stable_features)] -#![feature(return_position_impl_trait_in_trait)] //! Helpers and shared logic for librashader runtime implementations. //! //! Most of this is only useful when _writing_ a librashader runtime implementations, diff --git a/librashader-runtime/src/uniforms.rs b/librashader-runtime/src/uniforms.rs index 26e04aa..9d1a5f1 100644 --- a/librashader-runtime/src/uniforms.rs +++ b/librashader-runtime/src/uniforms.rs @@ -8,11 +8,6 @@ impl UniformScalar for f32 {} impl UniformScalar for i32 {} impl UniformScalar for u32 {} -pub trait AsDerefable { - fn get_deref(&self) -> impl Deref; - fn get_deref_mut(&mut self) -> impl DerefMut; -} - /// A trait for a binder that binds the given value and context into the uniform for a shader pass. pub trait BindUniform { /// Bind the given value to the shader uniforms given the input context.