mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-12-13 22:22:31 +00:00
OGG: Remove unused code
This commit is contained in:
parent
62c2b72ad3
commit
56e1ec6b02
3 changed files with 1 additions and 5 deletions
|
@ -1,8 +1,6 @@
|
||||||
// https://xiph.org/vorbis/doc/Vorbis_I_spec.html#x1-620004.2.1
|
// 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_IDENT_HEAD: &[u8] = &[1, 118, 111, 114, 98, 105, 115];
|
||||||
pub const VORBIS_COMMENT_HEAD: &[u8] = &[3, 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
|
// https://datatracker.ietf.org/doc/pdf/rfc7845.pdf#section-5.1
|
||||||
pub const OPUSTAGS: &[u8] = &[79, 112, 117, 115, 84, 97, 103, 115];
|
pub const OPUSTAGS: &[u8] = &[79, 112, 117, 115, 84, 97, 103, 115];
|
||||||
|
|
|
@ -76,8 +76,6 @@ where
|
||||||
{
|
{
|
||||||
let mut properties = OpusProperties::default();
|
let mut properties = OpusProperties::default();
|
||||||
|
|
||||||
let first_page_abgp = first_page_header.abgp;
|
|
||||||
|
|
||||||
// Safe to unwrap, it is impossible to get this far without
|
// Safe to unwrap, it is impossible to get this far without
|
||||||
// an identification packet.
|
// an identification packet.
|
||||||
let identification_packet = packets.get(0).unwrap();
|
let identification_packet = packets.get(0).unwrap();
|
||||||
|
|
|
@ -9,7 +9,7 @@ use crate::tag::{Tag, TagType};
|
||||||
use crate::traits::{Accessor, TagExt};
|
use crate::traits::{Accessor, TagExt};
|
||||||
|
|
||||||
use std::fs::{File, OpenOptions};
|
use std::fs::{File, OpenOptions};
|
||||||
use std::io::{Cursor, Write};
|
use std::io::Write;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
||||||
use lofty_attr::tag;
|
use lofty_attr::tag;
|
||||||
|
|
Loading…
Reference in a new issue