U16: drop stale allow(dead_code) on enc headers and mod, and the Encoder::context method rustc flags as unused
Browse files at this commitb14b4931af63a2743b5c6fb76fb2db395d6e8010Parent: 5d3c55c2 changed files +0 -6
crates/ec-hw/src/enc/headers.rsmodified+0 -1
| @@ -9,7 +9,6 @@ | |||
| 9 | //! field below therefore has to agree with the `VAEnc*ParameterBuffer` the | 9 | //! field below therefore has to agree with the `VAEnc*ParameterBuffer` the |
| 10 | //! driver was given, or the header describes a picture other than the one the | 10 | //! driver was given, or the header describes a picture other than the one the |
| 11 | //! hardware coded. | 11 | //! hardware coded. |
| 12 | -#![allow(dead_code)] // parked with the encoder: the writers return when it is ported | ||
| 13 | 12 | ||
| 14 | /// `VAEncPackedHeaderSequence`: packed sequence-level header bits. | 13 | /// `VAEncPackedHeaderSequence`: packed sequence-level header bits. |
| 15 | pub const PACKED_HEADER_SEQUENCE: u32 = 1; | 14 | pub const PACKED_HEADER_SEQUENCE: u32 = 1; |
crates/ec-hw/src/enc/mod.rsmodified+0 -5
| @@ -34,7 +34,6 @@ | |||
| 34 | //! are all measured by `gpu.rs`'s `av1_encode_rate_control_lands`, which | 34 | //! are all measured by `gpu.rs`'s `av1_encode_rate_control_lands`, which |
| 35 | //! prints what each mode delivered against what it was asked for. | 35 | //! prints what each mode delivered against what it was asked for. |
| 36 | 36 | ||
| 37 | -#![allow(dead_code)] // the header writers wait for the encoder port | ||
| 38 | 37 | ||
| 39 | use std::collections::VecDeque; | 38 | use std::collections::VecDeque; |
| 40 | use std::rc::Rc; | 39 | use std::rc::Rc; |
| @@ -763,10 +762,6 @@ impl Encoder { | |||
| 763 | Ok(()) | 762 | Ok(()) |
| 764 | } | 763 | } |
| 765 | 764 | ||
| 766 | - pub(crate) fn context(&self) -> &Rc<Context> { | ||
| 767 | - &self.context | ||
| 768 | - } | ||
| 769 | - | ||
| 770 | pub(crate) fn config(&self) -> &EncoderConfig { | 765 | pub(crate) fn config(&self) -> &EncoderConfig { |
| 771 | &self.config | 766 | &self.config |
| 772 | } | 767 | } |