OGG: Remove unused code

This commit is contained in:
Serial 2022-12-04 12:41:31 -05:00 committed by Alex
parent 62c2b72ad3
commit 56e1ec6b02
3 changed files with 1 additions and 5 deletions

View file

@ -1,8 +1,6 @@
// https://xiph.org/vorbis/doc/Vorbis_I_spec.html#x1-620004.2.1
pub const VORBIS_IDENT_HEAD: &[u8] = &[1, 118, 111, 114, 98, 105, 115];
pub const VORBIS_COMMENT_HEAD: &[u8] = &[3, 118, 111, 114, 98, 105, 115];
#[cfg(feature = "vorbis_comments")]
pub const VORBIS_SETUP_HEAD: &[u8] = &[5, 118, 111, 114, 98, 105, 115];
// https://datatracker.ietf.org/doc/pdf/rfc7845.pdf#section-5.1
pub const OPUSTAGS: &[u8] = &[79, 112, 117, 115, 84, 97, 103, 115];

View file

@ -76,8 +76,6 @@ where
{
let mut properties = OpusProperties::default();
let first_page_abgp = first_page_header.abgp;
// Safe to unwrap, it is impossible to get this far without
// an identification packet.
let identification_packet = packets.get(0).unwrap();

View file

@ -9,7 +9,7 @@ use crate::tag::{Tag, TagType};
use crate::traits::{Accessor, TagExt};
use std::fs::{File, OpenOptions};
use std::io::{Cursor, Write};
use std::io::Write;
use std::path::Path;
use lofty_attr::tag;