forge
Explore
Log in

Don't you dare go Hollow

U16: drop stale allow(dead_code) on enc headers and mod, and the Encoder::context method rustc flags as unused

Browse files at this commit

b14b4931af63a2743b5c6fb76fb2db395d6e8010Ahmet Kaan GümüşParent: 5d3c55c
crates/ec-hw/src/enc/headers.rsmodified+0 -1
@@ -9,7 +9,6 @@
99 //! field below therefore has to agree with the `VAEnc*ParameterBuffer` the
1010 //! driver was given, or the header describes a picture other than the one the
1111 //! hardware coded.
12-#![allow(dead_code)] // parked with the encoder: the writers return when it is ported
1312
1413 /// `VAEncPackedHeaderSequence`: packed sequence-level header bits.
1514 pub const PACKED_HEADER_SEQUENCE: u32 = 1;
crates/ec-hw/src/enc/mod.rsmodified+0 -5
@@ -34,7 +34,6 @@
3434 //! are all measured by `gpu.rs`'s `av1_encode_rate_control_lands`, which
3535 //! prints what each mode delivered against what it was asked for.
3636
37-#![allow(dead_code)] // the header writers wait for the encoder port
3837
3938 use std::collections::VecDeque;
4039 use std::rc::Rc;
@@ -763,10 +762,6 @@ impl Encoder {
763762 Ok(())
764763 }
765764
766- pub(crate) fn context(&self) -> &Rc<Context> {
767- &self.context
768- }
769-
770765 pub(crate) fn config(&self) -> &EncoderConfig {
771766 &self.config
772767 }