diff --git a/src/ogg/constants.rs b/src/ogg/constants.rs index ef948371..e8801592 100644 --- a/src/ogg/constants.rs +++ b/src/ogg/constants.rs @@ -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]; diff --git a/src/ogg/opus/properties.rs b/src/ogg/opus/properties.rs index 1a6fbd94..62437feb 100644 --- a/src/ogg/opus/properties.rs +++ b/src/ogg/opus/properties.rs @@ -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(); diff --git a/src/ogg/tag.rs b/src/ogg/tag.rs index 397491a7..b73677c6 100644 --- a/src/ogg/tag.rs +++ b/src/ogg/tag.rs @@ -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;