Fix compiler warnings: remove unused imports and dead code
- Remove unused NAL_SLICE and NAL_SEI constants from h264 parser - Remove unused aacs import from Disc::scan()
This commit is contained in:
@@ -480,8 +480,6 @@ impl Disc {
|
|||||||
/// The session must be open and unlocked (DriveSession::open handles this).
|
/// The session must be open and unlocked (DriveSession::open handles this).
|
||||||
/// All disc reads use standard READ(10) via UDF -- no vendor SCSI commands.
|
/// All disc reads use standard READ(10) via UDF -- no vendor SCSI commands.
|
||||||
pub fn scan(session: &mut DriveSession, opts: &ScanOptions) -> Result<Self> {
|
pub fn scan(session: &mut DriveSession, opts: &ScanOptions) -> Result<Self> {
|
||||||
use crate::aacs::{self, KeyDb};
|
|
||||||
|
|
||||||
// 1. Capacity
|
// 1. Capacity
|
||||||
let capacity = Self::read_capacity(session)?;
|
let capacity = Self::read_capacity(session)?;
|
||||||
|
|
||||||
|
|||||||
@@ -7,9 +7,7 @@
|
|||||||
use super::{CodecParser, Frame, PesPacket, pts_to_ns};
|
use super::{CodecParser, Frame, PesPacket, pts_to_ns};
|
||||||
|
|
||||||
/// H.264 NAL unit types we care about.
|
/// H.264 NAL unit types we care about.
|
||||||
const NAL_SLICE: u8 = 1;
|
|
||||||
const NAL_SLICE_IDR: u8 = 5;
|
const NAL_SLICE_IDR: u8 = 5;
|
||||||
const NAL_SEI: u8 = 6;
|
|
||||||
const NAL_SPS: u8 = 7;
|
const NAL_SPS: u8 = 7;
|
||||||
const NAL_PPS: u8 = 8;
|
const NAL_PPS: u8 = 8;
|
||||||
const NAL_AUD: u8 = 9;
|
const NAL_AUD: u8 = 9;
|
||||||
|
|||||||
Reference in New Issue
Block a user