From b14b4931af63a2743b5c6fb76fb2db395d6e8010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 2 Dec 2026 13:38:01 +0300 Subject: [PATCH] U16: drop stale allow(dead_code) on enc headers and mod, and the Encoder::context method rustc flags as unused --- crates/ec-hw/src/enc/headers.rs | 1 - crates/ec-hw/src/enc/mod.rs | 5 ----- 2 files changed, 6 deletions(-) diff --git a/crates/ec-hw/src/enc/headers.rs b/crates/ec-hw/src/enc/headers.rs index 7fd0e64a..a9023700 100644 --- a/crates/ec-hw/src/enc/headers.rs +++ b/crates/ec-hw/src/enc/headers.rs @@ -9,7 +9,6 @@ //! field below therefore has to agree with the `VAEnc*ParameterBuffer` the //! driver was given, or the header describes a picture other than the one the //! hardware coded. -#![allow(dead_code)] // parked with the encoder: the writers return when it is ported /// `VAEncPackedHeaderSequence`: packed sequence-level header bits. pub const PACKED_HEADER_SEQUENCE: u32 = 1; diff --git a/crates/ec-hw/src/enc/mod.rs b/crates/ec-hw/src/enc/mod.rs index 4c8c0730..8f39a94b 100644 --- a/crates/ec-hw/src/enc/mod.rs +++ b/crates/ec-hw/src/enc/mod.rs @@ -34,7 +34,6 @@ //! are all measured by `gpu.rs`'s `av1_encode_rate_control_lands`, which //! prints what each mode delivered against what it was asked for. -#![allow(dead_code)] // the header writers wait for the encoder port use std::collections::VecDeque; use std::rc::Rc; @@ -763,10 +762,6 @@ impl Encoder { Ok(()) } - pub(crate) fn context(&self) -> &Rc { - &self.context - } - pub(crate) fn config(&self) -> &EncoderConfig { &self.config }