1
0
Fork 0
mirror of https://github.com/alfg/mp4-rust.git synced 2025-04-15 08:14:15 +00:00

refactor: remove redundant gps_box() and into_inner() methods from Mp4Reader trait

This commit is contained in:
Precision 2025-01-13 12:50:19 +08:00
parent 09fdedc2d6
commit c0043dcb47

View file

@ -173,18 +173,6 @@ impl<R: Read + Seek> Mp4Reader<R> {
Err(Error::TrakNotFound(track_id))
}
}
pub fn into_inner(self) -> R {
self.reader
}
pub fn gps_box(&mut self) -> Option<GpsBox> {
if self.moov.gps.is_some() {
self.moov.gps.clone()
} else {
None
}
}
}
impl<R> Mp4Reader<R> {