Skip to content

Commit 5d5d147

Browse files
committed
refactor: remove dead code
1 parent 9745a1e commit 5d5d147

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/blob.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
33
use core::cmp::max;
44
use std::ffi::OsStr;
5-
use std::fmt;
65
use std::io::{Cursor, Seek};
76
use std::iter::FusedIterator;
87
use std::mem;
@@ -693,7 +692,7 @@ fn file_hash(src: &Path) -> Result<blake3::Hash> {
693692
}
694693

695694
/// Returns image file size and Exif.
696-
pub fn image_metadata(file: &std::fs::File) -> Result<(u64, Option<exif::Exif>)> {
695+
fn image_metadata(file: &std::fs::File) -> Result<(u64, Option<exif::Exif>)> {
697696
let len = file.metadata()?.len();
698697
let mut bufreader = std::io::BufReader::new(file);
699698
let exif = exif::Reader::new().read_from_container(&mut bufreader).ok();
@@ -714,12 +713,6 @@ fn exif_orientation(exif: &exif::Exif, context: &Context) -> i32 {
714713
0
715714
}
716715

717-
impl fmt::Display for BlobObject<'_> {
718-
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
719-
write!(f, "$BLOBDIR/{}", self.name)
720-
}
721-
}
722-
723716
/// All files in the blobdir.
724717
///
725718
/// This exists so we can have a [`BlobDirIter`] which needs something to own the data of

0 commit comments

Comments
 (0)