Remove an old forgotten feature

This commit is contained in:
Serial 2022-03-19 20:52:41 -04:00
parent 12b919871d
commit 42990c6ca1
No known key found for this signature in database
GPG key ID: DA95198DC17C4568
2 changed files with 5 additions and 9 deletions

View file

@ -66,7 +66,7 @@ impl AudioFile for Mp3File {
where
R: Read + Seek,
{
read::read_from(reader, true, read_properties)
read::read_from(reader, read_properties)
}
fn properties(&self) -> &Self::Properties {

View file

@ -15,11 +15,7 @@ use std::io::{Read, Seek, SeekFrom};
use byteorder::{BigEndian, ReadBytesExt};
pub(super) fn read_from<R>(
reader: &mut R,
read_tags: bool,
read_properties: bool,
) -> Result<Mp3File>
pub(super) fn read_from<R>(reader: &mut R, read_properties: bool) -> Result<Mp3File>
where
R: Read + Seek,
{
@ -47,7 +43,7 @@ where
let skip_footer = header.flags.footer;
#[cfg(feature = "id3v2")]
if read_tags {
{
let id3v2 = parse_id3v2(reader, header)?;
file.id3v2_tag = Some(id3v2);
}
@ -73,7 +69,7 @@ where
}
#[cfg(feature = "ape")]
if read_tags {
{
file.ape_tag =
Some(crate::ape::tag::read::read_ape_tag(reader, ape_header)?);
}
@ -133,7 +129,7 @@ where
let size = ape_header.size;
#[cfg(feature = "ape")]
if read_tags {
{
let ape = read_ape_tag(reader, ape_header)?;
file.ape_tag = Some(ape);
}